          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:
              self.previewoutput = None
              return
          logger.debug("Displaying preview: %s", self.previewcache["filenames"])
          self.previewoutput = (show_image, ImageTk.PhotoImage(show_image))
 
</s> remove         self.load_images_to_cache(imagefiles, frame_dims, thumbnail_size)
        if imagefiles == [gui_preview]:
 </s> add         self._load_images_to_cache(image_files, frame_dims, thumbnail_size)
        if image_files == [gui_preview]: </s> remove             self.previewoutput = None
 </s> add             self._previewoutput = None </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         logger.debug("Displaying preview: %s", self.previewcache["filenames"])
        self.previewoutput = (show_image, ImageTk.PhotoImage(show_image))

    def get_newest_filenames(self, imagefiles):
        """ Return image filenames that have been modified since the last check """
        if self.previewcache["modified"] is None:
            retval = imagefiles
 </s> add         logger.debug("Displaying preview: %s", self._previewcache["filenames"])
        self._previewoutput = (show_image, ImageTk.PhotoImage(show_image))

    def _get_newest_filenames(self, image_files):
        """ Return image filenames that have been modified since the last check.

        Parameters
        ----------
        image_files: list
            The list of image files to check the modification date for

        Returns
        -------
        list:
            A list of images that have been modified since the last check
        """
        if self._previewcache["modified"] is None:
            retval = image_files </s> remove             self.previewoutput = None
 </s> add             self._previewoutput = None
            os.remove(image_files[0])
        show_image = self._place_previews(frame_dims)
          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(image_files[0])
        show_image = self._place_previews(frame_dims)
            os.remove(image_files[0])
        show_image = self._place_previews(frame_dims)
          if not show_image:
              self.previewoutput = None
              return
          logger.debug("Displaying preview: %s", self.previewcache["filenames"])
          self.previewoutput = (show_image, ImageTk.PhotoImage(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