     enum Error: Swift.Error {
         case jpegCompressionFailed
         case diskWriteFailed
+        case unknown
     }
 }

        }
        
        return imagePicker
    }
    
    // MARK: UIImagePickerControllerDelegate

    fileprivate let imagePicker = UIImagePickerController()
    fileprivate let fileManager = FileManager.default
 
    public func getMedia(_ kind: Kind = .photo, source: Source = .photoAlbum) -> (UIViewController?, Task<URL>) {
        let deferred = Deferred<Task<URL>.Result>()
        let vc = getMedia(kind, source: source) { (url) in
            if let url = url {
                deferred.fill(with: .success(url))
            } else {
                deferred.fill(with: .failure(Error.unknown))
            }
        }
        return (vc, Task(deferred))
    }
    
    public func getMedia(_ kind: Kind = .photo, source: Source = .photoAlbum, handler: @escaping MediaHandler) -> UIViewController? {
        
        guard self.currentRequest == nil else {
