     }
 
     var afterUpdatedSkillCoverAction: (() -> Void)?
+
+    lazy var imagePicker: UIImagePickerController = {
+        let imagePicker = UIImagePickerController()
+        imagePicker.delegate = self
+        imagePicker.allowsEditing = false
+        return imagePicker
+        }()
     
     var isFirstAppear = true
 


                let openCameraRoll: ProposerAction = { [weak self] in
                    if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.SavedPhotosAlbum) {
                        let imagePicker = UIImagePickerController()
                        imagePicker.delegate = self
                        imagePicker.sourceType = .PhotoLibrary
                        imagePicker.allowsEditing = false

                        self?.presentViewController(imagePicker, animated: true, completion: nil)
                    }
                }



                let openCamera: ProposerAction = { [weak self] in
                    if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.Camera){
                        if let strongSelf = self {
                            strongSelf.imagePicker.sourceType = .Camera
                            strongSelf.presentViewController(strongSelf.imagePicker, animated: true, completion: nil)
                        }
                    }
                }

