Before rotation photo bug correction