Fix zoom not behaving correctly after changing image