      logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      logger.debug("Requested path: '%s'", path)
      if not make_folder and not os.path.isdir(path):
          logger.debug("%s does not exist", path)
          return None
      os.makedirs(path, exist_ok=True)
      logger.debug("Returning: '%s'", path)
      return path
  
  
 
</s> remove def get_image_paths(directory, extension=None):
 </s> add def get_image_paths(directory: str, extension: Optional[str] = None) -> List[str]: </s> remove         fs_backend = config.get("backend", None)
        if fs_backend is None or fs_backend.lower() not in self._backends.values():
 </s> add         fs_backend = config.get("backend", "").lower()
        if not fs_backend or fs_backend not in self._backends.values(): </s> remove     allparts = []
 </s> add     allparts: List[str] = [] </s> remove         return fs_backend.lower()
 </s> add         return fs_backend </s> remove         fs_backend = self._backends[selection].lower()
 </s> add         fs_backend = cast(ValidBackends, self._backends[selection].lower())
        return ""
      logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      logger.debug("Requested path: '%s'", path)
      if not make_folder and not os.path.isdir(path):
          logger.debug("%s does not exist", path)
        return ""
      os.makedirs(path, exist_ok=True)
      logger.debug("Returning: '%s'", path)
      return path
  
  
keep keep keep keep replace keep keep keep keep keep
 lib.Utils - add DPI detector 
lib/utils.py