Change picture dimensions when picture rotated [Finishes #72914330]

Previously, picture's dimensions were not switched on rotation.