     
     public override func viewWillLayoutSubviews() {
         super.viewWillLayoutSubviews()
-        
         isPerformingLayout = true
         pagingScrollView.frame = frameForPagingScrollView()
         pagingScrollView.contentSize = contentSizeForPagingScrollView()

        if displayCustomCloseButton == true {
            let closeImage = UIImage(named: "SKPhotoBrowser.bundle/images/btn_common_close_wh", inBundle: bundle, compatibleWithTraitCollection: nil) ?? UIImage()
            customCloseButton = UIButton(type: .Custom)
            customCloseButton.addTarget(self, action: #selector(SKPhotoBrowser.closeButtonPressed(_:)), forControlEvents: .TouchUpInside)
            customCloseButton.backgroundColor = .clearColor()
            // If another developer has not set their values
            if customCloseButtonImage != nil {

                closeButton.imageEdgeInsets = UIEdgeInsetsMake(12, 12, 12, 12)
            }
            closeButton.backgroundColor = .clearColor()
            closeButton.addTarget(self, action: #selector(self.closeButtonPressed(_:)), forControlEvents: UIControlEvents.TouchUpInside)
            closeButtonHideFrame = CGRect(x: 5, y: -20, width: 44, height: 44)
            closeButtonShowFrame = CGRect(x: 5, y: buttonTopOffset, width: 44, height: 44)
            view.addSubview(closeButton)
