              logger.debug("Number new images: %s, Last Modified: %s",
                           len(retval), self._previewcache["modified"])
          return retval
  
      def _load_images_to_cache(self, image_files, frame_dims, thumbnail_size):
          """ Load preview images to the image cache.
  
          Load new images and append to cache, filtering the cache the number of thumbnails that will
          fit  inside the display panel.
  
 
</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) </s> remove                       if os.path.getmtime(fname) > self._previewcache["modified"]]
 </s> add                       if os.path.getmtime(fname) > cast(float, self._previewcache["modified"])] </s> remove     def load_latest_preview(self, thumbnail_size, frame_dims):
 </s> add     def load_latest_preview(self, thumbnail_size: int, frame_dims: Tuple[int, int]) -> None: </s> remove     def resize_image(self, name, frame_dims):
 </s> add     def resize_image(self, name: str, frame_dims: Tuple[int, int]): </s> remove         logger.debug("Cache shape: %s", self._previewcache["images"].shape)
 </s> add         logger.debug("Cache shape: %s", cast(np.ndarray, self._previewcache["images"]).shape)
    def _load_images_to_cache(self,
                              image_files: List[str],
                              frame_dims: Tuple[int, int],
                              thumbnail_size: int) -> bool:
              logger.debug("Number new images: %s, Last Modified: %s",
                           len(retval), self._previewcache["modified"])
          return retval
  
    def _load_images_to_cache(self,
                              image_files: List[str],
                              frame_dims: Tuple[int, int],
                              thumbnail_size: int) -> bool:
          """ Load preview images to the image cache.
  
          Load new images and append to cache, filtering the cache the number of thumbnails that will
          fit  inside the display panel.
  
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py