Fixes variable image width bug

closes #95
 - added onload event listeners to images
Merge pull request #132 from jeremija/image-width-fix

Fixed bug where image width changes on refresh