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

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

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