Save canvas state when rotating