     public init(imageURLs:Array<URL>) {
         super.init(nibName: nil, bundle: nil)
         self.imageURLs = imageURLs
-        self.usingImageType = .URL
-    }
-
-    public init(images:Array<UIImage>) {
+        usingImageType = .URL
+    }
+
+    public init(images: [UIImage]) {
         super.init(nibName: nil, bundle: nil)
         self.images = images
-        self.usingImageType = .Image
-    }
-
-    public init(photos:Array<PhotoSlider.Photo>) {
+        usingImageType = .Image
+    }
+
+    public init(photos: [PhotoSlider.Photo]) {
         super.init(nibName: nil, bundle: nil)
         self.photos = photos
-        self.usingImageType = .Photo
+        usingImageType = .Photo
     }
     
     required public init(coder aDecoder: NSCoder) {


    public func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
        
        self.previousPage = self.currentPage

        self.scrollPreviewPoint = scrollView.contentOffset
        
    }

    public func scrollViewDidScroll(_ scrollView: UIScrollView) {

        if scrollInitalized == false {
            generateCurrentPage()
            return
        }
        
        let imageView = self.imageViews[self.currentPage]
        if imageView.scrollView.zoomScale > 1.0 {
            generateCurrentPage()
            scrollView.isScrollEnabled = false
            return
        }
        
        if self.scrollMode == .Rotating {
            return
        }
        


    func imageResources() -> Array<AnyObject>? {

        if usingImageType == .URL {
            return imageURLs as [AnyObject]?
        } else if usingImageType == .Image {
            return images
        } else if usingImageType == .Photo {
            return photos
        }
        
        return nil
