              The output location that has been specified for an Extract or Convert task
          """
          self._pathoutput = location
  
      def delete_preview(self):
          """ Delete the preview files in the cache folder and reset the image cache.
  
          Should be called when terminating tasks, or when Faceswap starts up or shuts down.
          """
          logger.debug("Deleting previews")
 
</s> remove     def set_faceswap_output_path(self, location):
 </s> add     def set_faceswap_output_path(self, location: str, batch_mode: bool = False) -> None: </s> remove     def _get_newest_filenames(self, image_files):
 </s> add     def _get_newest_folder(self) -> str:
        """ Obtain the most recent folder created in the extraction output folder when processing
        in batch mode.

        Returns
        -------
        str
            The most recently modified folder within the parent output folder. If no folders have
            been created, returns the parent output folder

        """
        assert self._pathoutput is not None
        folders = [os.path.join(self._pathoutput, folder)
                   for folder in os.listdir(self._pathoutput)
                   if os.path.isdir(os.path.join(self._pathoutput, folder))]
        folders.sort(key=os.path.getmtime)
        retval = folders[-1] if folders else self._pathoutput
        logger.debug("sorted folders: %s, return value: %s", folders, retval)
        return retval

    def _get_newest_filenames(self, image_files: List[str]) -> List[str]: </s> remove     def previewoutput(self):
 </s> add     def previewoutput(self) -> Optional[Tuple[Image.Image, ImageTk.PhotoImage]]:
    def delete_preview(self) -> None:
              The output location that has been specified for an Extract or Convert task
          """
          self._pathoutput = location
  
    def delete_preview(self) -> None:
          """ Delete the preview files in the cache folder and reset the image cache.
  
          Should be called when terminating tasks, or when Faceswap starts up or shuts down.
          """
          logger.debug("Deleting previews")
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py