     }
     
     func innerClose() {
-     
+        
         self.modalTransitionStyle = .CrossDissolve
         self.dismissViewControllerAnimated(true, completion: nil)
     }

    private var galleryPagingMode = GalleryPagingMode.Standard
    var currentIndex: Int
    var previousIndex: Int
    
    //LOCAL CONFIG
    private let configuration: GalleryConfiguration

                imageController.closeAnimation(closeAnimationDuration, completion: { [weak self] finished in
                    
                    self?.innerClose()
                    })
            }
        }
        else {
