         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)

            
        }
    }
}
                    push.action = {
                        if !CGRectIntersectsRect(self.view.frame, self.imageView.frame) {
                            //print("Outside")
                            UIView.animateWithDuration(FPLightBoxViewControllerConstants.mediumAnimationDuration , delay: 0.0, options: UIViewAnimationOptions.CurveLinear, animations: {
                                self.backgroundView.alpha = 0
                                }, completion: {
                                    (completed) in
                                    NSTimer.scheduledTimerWithTimeInterval(0.4, target: self, selector: "dismiss", userInfo: nil, repeats: false)
                            })
                        }
                    }
                }
                else {
                    UIView.animateWithDuration(FPLightBoxViewControllerConstants.fastAnimationDuration , delay: 0.0, options: .CurveLinear, animations: {
                        () -> Void in
                        self.imageView.center = self.view.center
                        }, completion: nil)
