     
     // tool for controls
     private var applicationWindow: UIWindow!
+    private var backgroundView: UIView!
     private var toolBar: UIToolbar!
     private var toolCounterLabel: UILabel!
     private var toolCounterButton: UIBarButtonItem!

                },
                completion: { (Bool) -> Void in
                    self.view.hidden = false
                    self.pagingScrollView.alpha = 1.0
                    self.resizableImageView.alpha = 0.0
                    fadeView.removeFromSuperview()
            })
            
        } else {
            
            UIView.animateWithDuration(animationDuration, delay:0, usingSpringWithDamping:animationDamping, initialSpringVelocity:0, options:.CurveEaseInOut, animations: { () -> Void in
                    fadeView.alpha = 1.0
                    if self.displayCloseButton == true {
                        self.closeButton.alpha = 1.0
                        self.closeButton.frame = self.closeButtonShowFrame

            resizableImageView.contentMode = .ScaleAspectFill
            applicationWindow.addSubview(resizableImageView)
            
            if screenRatio < imageRatio {
                let width = applicationWindow.frame.width
                let height = width / imageRatio
                let yOffset = (applicationWindow.frame.height - height) / 2
                finalImageViewFrame = CGRect(x: 0, y: yOffset, width: width, height: height)
            } else {
                let height = applicationWindow.frame.height
                let width = height * imageRatio
                let xOffset = (applicationWindow.frame.width - width) / 2
                finalImageViewFrame = CGRect(x: xOffset, y: 0, width: width, height: height)
            }
