          imagefiles = self.get_newest_filenames(imagefiles)
          if not imagefiles:
              return
  
          self.load_images_to_cache(imagefiles, frame_dims, thumbnail_size)
          if imagefiles == [gui_preview]:
              # Delete the preview image so that the main scripts know to output another
              logger.debug("Deleting preview image")
              os.remove(imagefiles[0])
          show_image = self.place_previews(frame_dims)
          if not show_image:
 
</s> remove             os.remove(imagefiles[0])
        show_image = self.place_previews(frame_dims)
 </s> add             os.remove(image_files[0])
        show_image = self._place_previews(frame_dims) </s> remove         imagefiles = self.get_newest_filenames(imagefiles)
        if not imagefiles:
 </s> add         image_files = self._get_newest_filenames(image_files)
        if not image_files: </s> remove             self.previewoutput = None
 </s> add             self._previewoutput = None </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)) </s> remove         imagefiles = self.get_images(self.pathoutput)
        gui_preview = os.path.join(self.pathoutput, ".gui_preview.jpg")
        if not imagefiles or (len(imagefiles) == 1 and gui_preview not in imagefiles):
 </s> add         image_files = self._get_images(self._pathoutput)
        gui_preview = os.path.join(self._pathoutput, ".gui_preview.jpg")
        if not image_files or (len(image_files) == 1 and gui_preview not in image_files):
        self._load_images_to_cache(image_files, frame_dims, thumbnail_size)
        if image_files == [gui_preview]:
          imagefiles = self.get_newest_filenames(imagefiles)
          if not imagefiles:
              return
  
        self._load_images_to_cache(image_files, frame_dims, thumbnail_size)
        if image_files == [gui_preview]:
        self._load_images_to_cache(image_files, frame_dims, thumbnail_size)
        if image_files == [gui_preview]:
              # Delete the preview image so that the main scripts know to output another
              logger.debug("Deleting preview image")
              os.remove(imagefiles[0])
          show_image = self.place_previews(frame_dims)
          if not show_image:
keep keep keep keep replace 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