         return imageView
     }
 
-//    override func viewWillLayoutSubviews() {
-//        setZoomScale()
-//    }
-
     private func setZoomScale() {
         let imageViewSize = imageView.bounds.size
         let scrollViewSize = scrollView.bounds.size

        imageView.setTranslatesAutoresizingMaskIntoConstraints(false)
        scrollView = UIScrollView(frame: frame)
        scrollView.setTranslatesAutoresizingMaskIntoConstraints(false)
        scrollView.contentSize = CGSizeMake(50, 50)

        super.init(frame: frame)

        //scrollView.backgroundColor = SwiftPhotoGalleryCell.colors[SwiftPhotoGalleryCell.cellCount % SwiftPhotoGalleryCell.colors.count]
        SwiftPhotoGalleryCell.cellCount++

        var scrollViewConstraints: [NSLayoutConstraint] = []
        var imageViewConstraints: [NSLayoutConstraint] = []

        return imageForPage!
    }

    private func getCurrentPage() -> Int {
        return Int((imageCollectionView.contentOffset.x / imageCollectionView.contentSize.width) * CGFloat(numberOfImages))
    }

