Added support to client-side scaled images

Hello, I added the support for images scaled client-side. Media fragments defined on them weren't showed correctly because the background image applied by the script wasn't scaled accordingly. 

I think it's important to underline that since I used CSS3 and .naturalWidth this commit might narrow the range of supported browsers. More details are in the first commit's description of my branch.