Fix image rotation