clean up imageRotate method
Cleanup