Correctly redraw the image if it is outside of the viewport and brought
inside via zoom/pan