rules image and rotate image