                   
                   return
                }
-                           
+               
                if let imageSource = CGImageSourceCreateWithURL(url as CFURL, nil) {
                   let imageProperties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, nil)
                   if let dict = imageProperties as? [String: Any] {

                  }
               }
               
               if photoKeys.count == results.count {
                  // we've saved all the results to our photo library
                  // and can safely make our observation and move on
                  

                  return
               }
               
               let photoKey = resultsToPhotoKeys[result]
               do {
                  try imageStore.store(image, forKey:photoKey)
                  numLoaded += 1
               } catch {
                  DispatchQueue.main.async {
                     MBProgressHUD.hideAllHUDs(for: self.view, animated: false)
