fix the scaling of the image when the window gets bigger than the image itself
a todo...