          self._previewcache["images"] = cache
          logger.debug("Cache shape: %s", self._previewcache["images"].shape)
          return True
  
      def _place_previews(self, frame_dims):
          """ Format the preview thumbnails stored in the cache into a grid fitting the display
          panel.
  
          Parameters
          ----------
 
</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) </s> remove             cache = np.concatenate((cache, samples))[-num_images:]
 </s> add             cache = np.concatenate((cache, asamples))[-num_images:] </s> remove             cache = samples[-num_images:]
 </s> add             cache = asamples[-num_images:] </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 _create_placeholder(self, thumbnail_size):
 </s> add     def _create_placeholder(self, thumbnail_size: int) -> None:
    def _place_previews(self, frame_dims: Tuple[int, int]) -> Image.Image:
          self._previewcache["images"] = cache
          logger.debug("Cache shape: %s", self._previewcache["images"].shape)
          return True
  
    def _place_previews(self, frame_dims: Tuple[int, int]) -> Image.Image:
          """ Format the preview thumbnails stored in the cache into a grid fitting the display
          panel.
  
          Parameters
          ----------
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py