              icons[name] = img
          logger.debug(icons)
          return icons
  
      def set_faceswap_output_path(self, location):
          """ Set the path that will contain the output from an Extract or Convert task.
  
          Required so that the GUI can fetch output images to display for return in
          :attr:`previewoutput`.
  
 
</s> remove     def delete_preview(self):
 </s> add     def delete_preview(self) -> None: </s> remove         image_files = self._get_images(self._pathoutput)
 </s> add         assert self._pathoutput is not None
        image_path = self._get_newest_folder() if self._batch_mode else self._pathoutput
        image_files = self._get_images(image_path) </s> remove     def get_result(self):
 </s> add     def get_result(self) -> Any: </s> remove             self._previewcache["modified"] = max([os.path.getmtime(img) for img in retval])
 </s> add             self._previewcache["modified"] = max(os.path.getmtime(img) for img in retval)
    def set_faceswap_output_path(self, location: str, batch_mode: bool = False) -> None:
              icons[name] = img
          logger.debug(icons)
          return icons
  
    def set_faceswap_output_path(self, location: str, batch_mode: bool = False) -> None:
          """ Set the path that will contain the output from an Extract or Convert task.
  
          Required so that the GUI can fetch output images to display for return in
          :attr:`previewoutput`.
  
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py