Added window resizing so the images won't be off screen on resize.