rotate the image by 90 degrees