Added js support for original image size