             builder.minSegment = 8.0 / xform.a
         }
     }
+    
+    // Background
+    private var backgroundMode = BackgroundMode.limit {
+        didSet {
+            checkerView.image = nil
+            thumbImage.image = nil
+            switch(backgroundMode) {
+            case .checker:
+                checkerView.image = checkerImage
+                thumbImage.image = checkerImage
+            case .black:
+                checkerView.backgroundColor = UIColor.blackColor()
+                thumbImage.backgroundColor = UIColor.blackColor()
+            case .white:
+                checkerView.backgroundColor = UIColor.whiteColor()
+                thumbImage.backgroundColor = UIColor.whiteColor()
+            default:
+                break
+            }
+        }
+    }
+    private var checkerImage:UIImage?
+
     // Image Cache
     private let cacheCycle = 8
     private let cacheMax = 8

        }
        checkerImage = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        checkerView.image = checkerImage
        thumbImage.image = checkerImage
    }

    override func didReceiveMemoryWarning() {

        trimmedImage = image
        segment.selectedSegmentIndex = 0
        viewMain.addSubview(borderView)
        backgroundMode = .checker
        updateUI()
    }
    
