Modified to save history when DisplayObjects are rotated