          imagefiles = self.get_images(self.pathpreview)
          modified = None
          if not imagefiles:
              logger.debug("No preview to display")
              self.previewtrain = dict()
              return
          for img in imagefiles:
              modified = os.path.getmtime(img) if modified is None else modified
              name = os.path.basename(img)
              name = os.path.splitext(name)[0]
 
</s> remove         for img in imagefiles:
 </s> add         for img in image_files: </s> remove         if not imagefiles:
 </s> add         if not image_files: </s> remove         imagefiles = self.get_images(self.pathpreview)
 </s> add         image_files = self._get_images(self._pathpreview) </s> remove         """ Load the training preview images """
 </s> add         """ Load the training preview images.

        Reads the training image currently stored in the cache folder and loads them to
        :attr:`previewtrain` for retrieval in the GUI.
        """ </s> remove         imagefiles = [gui_preview] if gui_preview in imagefiles else imagefiles
        logger.debug("Image Files: %s", len(imagefiles))
 </s> add         image_files = [gui_preview] if gui_preview in image_files else image_files
        logger.debug("Image Files: %s", len(image_files))
            self._previewtrain = dict()
          imagefiles = self.get_images(self.pathpreview)
          modified = None
          if not imagefiles:
              logger.debug("No preview to display")
            self._previewtrain = dict()
              return
          for img in imagefiles:
              modified = os.path.getmtime(img) if modified is None else modified
              name = os.path.basename(img)
              name = os.path.splitext(name)[0]
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