update image to fit correct size