Fixed undo button for rotate and flip