added rotation of the image