add rotate image and its test