   
   open var disableEntitlements: Bool = false
   
-  open var cameraDevice: UIImagePickerControllerCameraDevice = .rear
-  
-  open var cameraFlashMode: UIImagePickerControllerCameraFlashMode = .auto
+  open var cameraDevice: UIImagePickerController.CameraDevice = .rear
+  
+  open var cameraFlashMode: UIImagePickerController.CameraFlashMode = .auto
   
   open var resizeImage: CGSize?
   

        initialRequestOptions.resizeMode = .fast
        initialRequestOptions.deliveryMode = .fastFormat
        
        manager.requestImageData(for: asset!, options: initialRequestOptions) { (data: Data?, title: String?, orientation: UIImageOrientation, info: [AnyHashable: Any]?) -> () in
          guard let dataImage = data else {
            errorHandler(.other)
            return

  }
  
  public func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
    if let image = info[UIImagePickerController.InfoKey.originalImage.rawValue] {
        self.photoHandler(image as? UIImage)
    } else {
      self.onError?(.other)
    }
    picker.dismiss(animated: true, completion: nil)
    self.popoverController = nil
  }
  
