New functionality: Rotate an image with a given angle. rotate() function