code: def addImagePath(new_path):
      
      if os.path.exists(new_path):
          Settings.ImagePaths.append(new_path)
      elif "http://" in new_path or "https://" in new_path:
          request = requests.get(new_path)
          if request.status_code < 400:
              # Path exists
              Settings.ImagePaths.append(new_path)
          else:
              raise OSError("Unable to connect to " + new_path)
      else:
          raise OSError("File not found: " + new_path)
docs: Convenience function. Adds a path to the list of paths to search for images.
  
      Can be a URL (but must be accessible).