got image rotation working