Fixed bug in rotating image system