Resize image on every page turn