Added History for flip and rotate