fixed rotation of images