Fix image rotation save problem