rotation: fixed the image position when rotating