Added background-size css3 property. Now media fragments (only defined on images) are correctly scaled according to the actual size of the resized image. I used the image's property 'naturalWidth' because it was the cleanest solution, but it is not supported by IE older than 9 and Opera. Script compressed with online YUI compressor.
Ignored aptana project file in git repo