         parentViewFrameInOurCoordinateSystem = CGRectIntegral(applicationWindow!.convertRect(displacedView.bounds, fromView: displacedView))
         
         imageView.frame = parentViewFrameInOurCoordinateSystem
-        imageView.contentMode = UIViewContentMode.ScaleAspectFit
+        imageView.contentMode = .ScaleAspectFit
         view.addSubview(imageView)
         
         UIGraphicsBeginImageContextWithOptions(displacedView.bounds.size, true, UIScreen.mainScreen().scale)

        doubleTapRecognizer.numberOfTapsRequired = 2
        scrollView.addGestureRecognizer(doubleTapRecognizer)
        panGestureRecognizer.addTarget(self, action: "scrollViewDidPan:")
        view.addGestureRecognizer(self.panGestureRecognizer)
    }
    
    private func configureImageView() {

        super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)
        shouldRotate = true
    }
    
    public override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
