Fix issue with display:none images

* Fixes issue #125
* Set the attribute width and height to the source images width and height rather than the displayed width and height of the image