         print("Width Ratio :\(widthRatio)")
         
         
-        UIView.animateWithDuration(0.4, delay: 0.0, options: UIViewAnimationOptions.CurveLinear, animations: {
+        UIView.animateWithDuration(FPLightBoxViewControllerConstants.mediumAnimationDuration, delay: 0.0, options: UIViewAnimationOptions.CurveLinear, animations: {
             ()-> Void in
             
             self.imageView.frame = CGRectMake(0,0,widthImage,heightImage)

        self.scrollView.showsVerticalScrollIndicator = false
        self.scrollView.backgroundColor = UIColor.clearColor()
        
        self.backgroundView.backgroundColor = UIColor(red: 0/255, green: 0/255, blue: 0/255, alpha: 0.8)
        self.view.addSubview(self.scrollView)
        
        


struct FPLightBoxViewControllerConstants {
    static let dismissalFlickVelocityMagnitude: CGFloat = 2000.0
    static let mediumAnimationDuration = 0.4
    static let fastAnimationDuration = 0.2
}

class FPLightBoxViewController : UIViewController,UIScrollViewDelegate, UIGestureRecognizerDelegate {
    
    //MARK:- Properties
    
    var image: UIImage!
    var referenceImageView: UIImageView!
    var backgroundColor: UIColor!
    
    private var imageView: UIImageView!
    private var backgroundView: UIView!
    private var scrollView: UIScrollView!
    private var animator: UIDynamicAnimator!
    private var referenceFrame: CGRect!
    private var imageWidth: CGFloat!
    private var imageHeight: CGFloat!
    //MARK:- Flags
    var isPresented = false
    
