         super.viewDidLayoutSubviews()
         
         if !isBeingRotated {
-            mediaPickerView.frame = view.bounds
-            mediaPickerView.transform = CGAffineTransform(interfaceOrientation: interfaceOrientation)
+            layoutMediaPickerView(interfaceOrientation: interfaceOrientation)
         }
         onPreviewSizeDetermined?(mediaPickerView.previewSize)
         layoutSubviewsPromise.fulfill()

        mediaPickerView.setShowsCropButton(showsCropButton)
    }
    
    // MARK: - Dispose bag
    
    private var disposables = [AnyObject]()

            UIView.animate(
                withDuration: duration,
                animations: {
                    self.layoutMediaPickerView(interfaceOrientation: toInterfaceOrientation)
            })
        }
        super.willAnimateRotation(to: toInterfaceOrientation, duration: duration)
