I am using the following function to convert a PHAsset to a url:
extension PHAsset { func getURL(completionHandler : @escaping ((_ responseURL : URL?) -&