Rotate method implemented in Image.