                                             show_files)[-num_images:]
          cache = self._previewcache["images"]
          if cache is None:
              logger.debug("Creating new cache")
              cache = samples[-num_images:]
          else:
              logger.debug("Appending to existing cache")
              cache = np.concatenate((cache, samples))[-num_images:]
          self._previewcache["images"] = cache
          logger.debug("Cache shape: %s", self._previewcache["images"].shape)
 
</s> remove             cache = np.concatenate((cache, samples))[-num_images:]
 </s> add             cache = np.concatenate((cache, asamples))[-num_images:] </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         if dropped_files:
            logger.debug("Removing dropped files: %s", dropped_files)
            show_files = [fname for fname in show_files if fname not in dropped_files]

        self._previewcache["filenames"] = (self._previewcache["filenames"] +
                                           show_files)[-num_images:]
        cache = self._previewcache["images"]
 </s> add         self._previewcache["filenames"] = (cast(List[str], self._previewcache["filenames"]) +
                                           filenames)[-num_images:]
        cache = cast(Optional[np.ndarray], self._previewcache["images"]) </s> remove     def _place_previews(self, frame_dims):
 </s> add     def _place_previews(self, frame_dims: Tuple[int, int]) -> Image.Image:
            cache = asamples[-num_images:]
                                             show_files)[-num_images:]
          cache = self._previewcache["images"]
          if cache is None:
              logger.debug("Creating new cache")
            cache = asamples[-num_images:]
          else:
              logger.debug("Appending to existing cache")
              cache = np.concatenate((cache, samples))[-num_images:]
          self._previewcache["images"] = cache
          logger.debug("Cache shape: %s", self._previewcache["images"].shape)
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py