      def load_latest_preview(self, thumbnail_size, frame_dims):
          """ Load the latest preview image for extract and convert """
          logger.debug("Loading preview image: (thumbnail_size: %s, frame_dims: %s)",
                       thumbnail_size, frame_dims)
          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):
              logger.debug("No preview to display")
              self.previewoutput = None
              return
          # Filter to just the gui_preview if it exists in folder output
          imagefiles = [gui_preview] if gui_preview in imagefiles else imagefiles
 
</s> remove             self.previewoutput = None
 </s> add             self._previewoutput = None </s> remove         """ Load the latest preview image for extract and convert """
 </s> add         """ Load the latest preview image for extract and convert.

        Retrieves the latest preview images from the faceswap output folder, resizes to thumbnails
        and lays out for display. Places the images into :attr:`previewoutput` for loading into
        the display panel.

        Parameters
        ----------
        thumbnail_size: int
            The size of each thumbnail that should be created
        frame_dims: tuple
            The (width (`int`), height (`int`)) of the display panel that will display the preview
        """ </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_newest_filenames(imagefiles)
        if not imagefiles:
 </s> add         image_files = self._get_newest_filenames(image_files)
        if not image_files: </s> remove         if not imagefiles:
 </s> add         if not image_files:
        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):
      def load_latest_preview(self, thumbnail_size, frame_dims):
          """ Load the latest preview image for extract and convert """
          logger.debug("Loading preview image: (thumbnail_size: %s, frame_dims: %s)",
                       thumbnail_size, frame_dims)
        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):
        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):
        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):
              logger.debug("No preview to display")
              self.previewoutput = None
              return
          # Filter to just the gui_preview if it exists in folder output
          imagefiles = [gui_preview] if gui_preview in imagefiles else imagefiles
keep keep keep keep replace 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