     // MARK: - Constraints
     
     func layoutScrollView() {
-        self.pageControl.translatesAutoresizingMaskIntoConstraints = false
+        self.scrollView.translatesAutoresizingMaskIntoConstraints = false
         
         let views = ["scrollView": self.scrollView]
-        let constraintVertical = NSLayoutConstraint.constraintsWithVisualFormat("V:[scrollView]|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views)
+        let constraintVertical   = NSLayoutConstraint.constraintsWithVisualFormat("V:|[scrollView]|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views)
         let constraintHorizontal = NSLayoutConstraint.constraintsWithVisualFormat("H:|[scrollView]|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views)
         self.view.addConstraints(constraintVertical)
         self.view.addConstraints(constraintHorizontal)

            return
        }
        
        if self.scrollMode == .Rotating {
            return
        }
        
        let offsetX = fabs(scrollView.contentOffset.x - self.scrollPreviewPoint.x)
        let offsetY = fabs(scrollView.contentOffset.y - self.scrollPreviewPoint.y)
        

    }
    
    public func scrollViewDidEndDecelerating(scrollView: UIScrollView) {

        // If page index has changed - reset zoom scale for previous image.
        if self.previousPage != self.currentPage {
            let imageView = self.imageViews[self.previousPage]
            imageView.scrollView.zoomScale = imageView.scrollView.minimumZoomScale
        }
        
        self.scrollMode = .None

    }
    
    // MARK: - Button Actions
