                  try:
                      os.remove(fname)
                  except FileNotFoundError:
                      logger.debug("File does not exist: %s", fname)
          self.clear_image_cache()
  
      def clear_image_cache(self):
          """ Clear all cached images """
          logger.debug("Clearing image cache")
          self.pathoutput = None
 
</s> remove     def clear_image_cache(self):
        """ Clear all cached images """
 </s> add     def _clear_image_cache(self):
        """ Clear all cached images. """ </s> remove         self.pathoutput = None
        self.previewoutput = None
        self.previewtrain = dict()
        self.previewcache = dict(modified=None,  # cache for extract and convert
                                 images=None,
                                 filenames=list(),
                                 placeholder=None)
 </s> add         self._pathoutput = None
        self._previewoutput = None
        self._previewtrain = dict()
        self._previewcache = dict(modified=None,  # cache for extract and convert
                                  images=None,
                                  filenames=list(),
                                  placeholder=None) </s> remove         for fname in self.previewcache["filenames"]:
 </s> add         for fname in self._previewcache["filenames"]: </s> remove 
    def __init__(self, pathcache=None):
 </s> add     def __init__(self): </s> remove     def get_images(imgpath):
        """ Get the images stored within the given directory """
        logger.debug("Getting images: '%s'", imgpath)
        if not os.path.isdir(imgpath):
 </s> add     def _get_images(image_path):
        """ Get the images stored within the given directory.

        Parameters
        ----------
        image_path: str
            The folder containing images to be scanned

        Returns
        -------
        list:
            The image filenames stored within the given folder

        """
        logger.debug("Getting images: '%s'", image_path)
        if not os.path.isdir(image_path):
        self._clear_image_cache()
                  try:
                      os.remove(fname)
                  except FileNotFoundError:
                      logger.debug("File does not exist: %s", fname)
        self._clear_image_cache()
  
      def clear_image_cache(self):
          """ Clear all cached images """
          logger.debug("Clearing image cache")
          self.pathoutput = None
keep keep keep keep replace keep keep keep keep keep
 GUI Updates (#940)

* lib.gui: Update icons
* tools.cli: Add video filetype flag to mask input
* lib.gui.popup_configure: Refresh GUI on config save
* lib.gui._config: Add Icon size and load last session options
* lib.gui.control_helper - Add control modification tracking
* lib.gui - Add Projects and Last Session
- Main root title handled by projects
- Add Hotkeys
- Create projects module
- split fsw and fst filetypes
- Add last_session saving

* lib.project
- Documentation
- Ask confirm on closing unsaved project
-Fixups

* Track model folder changes
- Shuffle some globals
- Activate System Verbosity for GUI

* lib.gui.utils - Documentation and clean up
- lib.gui.custom_widgets - Create and document

* Add GUI config option to disable auto loading model stats 
lib/gui/utils.py