add test for rotate image