added utility to rotate an image by 90 degrees