         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(){

    
    override public func layoutSubviews() {
        super.layoutSubviews()
        
        if (!zoomEnabled) {
            imageView.frame.size = frame.size;
        } else if (!isZoomed()) {
