         if floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_7_1 {
             self.view.addSubview(self.backgroundView)
         } else {
-            let blurEffect = UIBlurEffect(style: UIBlurEffectStyle.Dark)
-            let effectView = UIVisualEffectView(effect: blurEffect)
-            effectView.frame = self.view.bounds
-            self.view.addSubview(effectView)
-            effectView.addSubview(self.backgroundView)
+            self.effectView = UIVisualEffectView(effect: UIBlurEffect(style: UIBlurEffectStyle.Dark))
+            self.effectView.frame = self.view.bounds
+            self.view.addSubview(self.effectView)
+            self.effectView.addSubview(self.backgroundView)
         }
 
         // scrollview setting for Item

    var imageURLs:Array<NSURL>?
    var pageControl:UIPageControl!
    var backgroundView:UIView!
    var closeButton:UIButton?
    var scrollMode:PhotoSliderControllerScrollMode = .None
    var scrollInitalized = false

   
    public override func traitCollectionDidChange(previousTraitCollection: UITraitCollection?) {

        let contentViewBounds = self.view.bounds
        
        // Close Button
        if self.visibleCloseButton {
            self.closeButton!.frame = CGRect(x: contentViewBounds.size.width - 32.0 - 8.0, y: 8.0, width: 32.0, height: 32.0)
        }
        
        // Background View
        self.backgroundView.frame = contentViewBounds
        if floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_7_1 {
            self.effectView.frame = contentViewBounds
        }
        
        
        // Scroll View
        self.scrollView.contentSize = CGSizeMake(
            contentViewBounds.width * CGFloat(self.imageURLs!.count),
            contentViewBounds.height * 3.0
        )
        self.scrollView.frame = contentViewBounds;
        
        // ImageViews
        var frame = CGRect(x: 0.0, y: contentViewBounds.height, width: contentViewBounds.width, height: contentViewBounds.height)
        for i in 0..<self.scrollView.subviews.count {
            var imageView = self.scrollView.subviews[i] as! PhotoSlider.ImageView
            imageView.frame = frame
            frame.origin.x += contentViewBounds.size.width
            imageView.scrollView.frame = contentViewBounds
        }
        
        self.scrollView.contentOffset = CGPointMake(0.0, contentViewBounds.height)
        
        // Page Control
        if self.visiblePageControl {
            self.pageControl.frame = CGRectMake(0.0, contentViewBounds.height - 44, contentViewBounds.width, 22)
        }
        
    }
