                guard let imageStore = ImageStore.shared() else {
                   DispatchQueue.main.async {
                      MBProgressHUD.hideAllHUDs(for: self.view, animated: false)
+                     
+                     let alertTitle = NSLocalizedString("Photo Load Error", comment: "Title for photo library error when making new obs")
+                     let alertMsg = NSLocalizedString("ImageStore Creation Error", comment: "Message when we can't make the image store for the app")
+                     let alert = UIAlertController(title: alertTitle, message: alertMsg, preferredStyle: .alert)
+                     alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
+                     self.present(alert, animated: true, completion: nil)
                   }
-                  
-                  let alertTitle = NSLocalizedString("Photo Load Error", comment: "Title for photo library error when making new obs")
-                  let alertMsg = NSLocalizedString("ImageStore Creation Error", comment: "Message when we can't make the image store for the app")
-                  let alert = UIAlertController(title: alertTitle, message: alertMsg, preferredStyle: .alert)
-                  alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
-                  self.present(alert, animated: true, completion: nil)
                   
                   return
                }

      }
      
      for result in results {
         result.itemProvider.loadFileRepresentation(forTypeIdentifier: "public.jpeg") { (url, error) in
            
            if let error = error {
               DispatchQueue.main.async {
                  MBProgressHUD.hideAllHUDs(for: self.view, animated: false)
               }
               
               // notify about the error
               let alertTitle = NSLocalizedString("Photo Load Error", comment: "Title for photo library fetch error when making new obs")
               let alert = UIAlertController(title: alertTitle, message: error.localizedDescription, preferredStyle: .alert)
               alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
               self.present(alert, animated: true, completion: nil)
               
               return
            } else if let url = url, let image = UIImage(contentsOfFile: url.path) {

               } catch {
                  DispatchQueue.main.async {
                     MBProgressHUD.hideAllHUDs(for: self.view, animated: false)
                     
                     let alertTitle = NSLocalizedString("Photo Load Error", comment: "Title for photo library error when making new obs")
                     let alertMsg = NSLocalizedString("ImageStore Save Error", comment: "Message when we can't save to the app image store")
                     let alert = UIAlertController(title: alertTitle, message: alertMsg, preferredStyle: .alert)
                     alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
                     self.present(alert, animated: true, completion: nil)
                  }
                  
                  return
               }
