             guard let backgroundPicture = backgroundPicture else { return }
             
             let size = AVMakeRectWithAspectRatioInsideRect(backgroundPicture.size,
-                CGRect(x: 0, y: 0, width: CGFloat.max, height: frame.height)).size
+                CGRect(x: 0.0, y: 0.0, width: CGFloat.max, height: frame.height)).size
             UIGraphicsBeginImageContextWithOptions(size, false, 0.0)
             backgroundPicture.drawInRect(CGRect(x: 0.0, y: 0.0, width: size.width, height: size.height))
             let image = UIGraphicsGetImageFromCurrentImageContext()

        
        switch differenceInTouchXAxis {
        case let x where x < -100:
            showViewWithIndex(currentViewIndex+1 >= views!.count ? currentViewIndex : currentViewIndex + 1, setCurrentPage: true)
        case let x where x > 100:
            showViewWithIndex(currentViewIndex < 1 ? currentViewIndex : currentViewIndex - 1, setCurrentPage: true)
        default:

        
        let duration = (index == currentViewIndex) ? 0.3 : 0.2
        UIView.animateWithDuration(duration) {
            self.background.layer.frame = CGRect(x: self.backgroundLayerFrameOrigin!.x,
                y: 0.0,
                width: self.background.layer.frame.width,
                height: self.background.layer.frame.height)
        }
        
        // Views
