It includes a bunch of support detection and polyfills to make sure it works on as many browsers as I could manage.
(it also ignores gif images - in case they're animated)
It it will be possible with html5.
For now, you can use Silverlight to do it. Here is a great starting point.