Resize code

Adds a toggle button to turn on/off the resize for images.
Added an event on the window resize to resize the images along with it which completes bug  #5.