         self.zoomEnabled = zoomEnabled
         super.init(frame: CGRectNull)
         imageView.addObserver(self, forKeyPath: "image", options: .New, context: &myContext)
-
+        
         image.setToImageView(imageView)
         
         imageView.clipsToBounds = true

    }
    
    private func calculateMaximumScale() -> CGFloat {
        if let image = imageView.image {
            return image.size.width / calculatePictureSize().width
        } else {
            return 1.0
        }
    }
    
    private func setPictoCenter(){

        if context == &myContext {
            self.maximumZoomScale = calculateMaximumScale()
        } else {
            super.observeValueForKeyPath(keyPath!, ofObject: object!, change: change!, context: context)
        }
    }
    
