Class for rotate photo