Make sure image is always within the client window