 extension LightboxView: UIScrollViewDelegate {
 
   public func scrollViewDidZoom(scrollView: UIScrollView) {
-    println("Zoom")
     updateImageConstraints()
   }
 


  public func updateImageConstraints() {
    if let image = imageView.image {
      let imageWidth = image.size.width
      let imageHeight = image.size.height

      let viewWidth = bounds.size.width
      let viewHeight = bounds.size.height

      // Center image if it is smaller than screen
      var hPadding = (viewWidth - scrollView.zoomScale * imageWidth) / 2
      if hPadding < 0 { hPadding = 0 }

      var vPadding = (viewHeight - scrollView.zoomScale * imageHeight) / 2
      if vPadding < 0 { vPadding = 0 }

      imageConstraintLeading.constant = hPadding
      imageConstraintTrailing.constant = hPadding

    let scrollView = UIScrollView(frame: CGRectZero)
    scrollView.setTranslatesAutoresizingMaskIntoConstraints(false)
    scrollView.multipleTouchEnabled = true
    scrollView.minimumZoomScale = self.minimumZoomScale
    scrollView.maximumZoomScale = self.maximumZoomScale
    scrollView.delegate = self

    return scrollView
  }()

