Added rotation to images