Excellent. Great and simple solution. Thanks.
Newbie here. I want to have an image start very large and resize down to the standard image size. I can get that to work fine but when the image is large I have scrollbars on my browser. I don't want the scrollbars as it causes other parts of my page to move around. Is there any way to do something like that? Do I need to learn how to put everything in a canvas or something? http://codepen.io/catfishsushi/pen/zevrl