     @IBOutlet weak var centeringView: UIView!
     
     var allowsCropping: Bool = false
-    var image: UIImage? {
-        didSet {
-            imageView.image = image
-            imageView.sizeToFit()
-        }
-    }
-    
     var verticalPadding: CGFloat = 30
     var horizontalPadding: CGFloat = 30
     
     var onComplete: ALCameraViewCompletion?
     
-    internal init(image: UIImage, allowsCropping: Bool) {
-        self.allowsCropping = allowsCropping
-        self.image = image
+    var asset: PHAsset?
+    
+    var targetSize: CGSize {
+        let scale = UIScreen.mainScreen().scale
+        let targetSize = CGSize(width: view.bounds.width * scale, height: view.bounds.height * scale)
+        return targetSize
+    }
+    
+    init(asset: PHAsset, allowsCropping: Bool) {
+        self.asset = asset
+        self.allowsCropping = true
         super.init(nibName: "ALConfirmViewController", bundle: NSBundle(forClass: ALCameraViewController.self))
         commonInit()
     }
     
     internal required init?(coder aDecoder: NSCoder) {
-        self.image = UIImage()
         super.init(coder: aDecoder)
         commonInit()
     }

        
        buttonActions()
    }
    
    override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()

        if UIScreen.mainScreen().bounds.width <= 320 {
            horizontalPadding = 15
        }
//        
//        if let a = asset {
//            
//        }
    }
    
    internal override func prefersStatusBarHidden() -> Bool {
