Adding functionality of rotating the image and saved rotated