          self._display_dims = dimensions
  
      def update_tk_image(self):
          """ Build the full preview images and compile :attr:`tk_image` for display. """
          logger.trace("Updating tk image")
          self._build_faces_image()
          img = np.vstack((self._faces_source, self._faces_dest))
          size = self._get_scale_size(img)
          img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
          img = Image.fromarray(img)
 
</s> remove     def update_tk_image(self):
 </s> add     def update_tk_image(self) -> None: </s> remove         img = Image.fromarray(img)
        img = img.resize(size, Image.ANTIALIAS)
        self._tk_image = ImageTk.PhotoImage(img)
 </s> add         pilimg = Image.fromarray(img)
        pilimg = pilimg.resize(size, Image.ANTIALIAS)
        self._tk_image = ImageTk.PhotoImage(pilimg) </s> remove         logger.trace("Updated tk image")
 </s> add         logger.trace("Updated tk image")  # type: ignore </s> remove     def _get_scale_size(self, image):
 </s> add     def _get_scale_size(self, image: np.ndarray) -> Tuple[int, int]: </s> remove     def _build_ui(self):
 </s> add     def _build_ui(self) -> None:
        logger.trace("Updating tk image")  # type: ignore
          self._display_dims = dimensions
  
      def update_tk_image(self):
          """ Build the full preview images and compile :attr:`tk_image` for display. """
        logger.trace("Updating tk image")  # type: ignore
          self._build_faces_image()
          img = np.vstack((self._faces_source, self._faces_dest))
          size = self._get_scale_size(img)
          img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
          img = Image.fromarray(img)
keep keep keep keep replace keep keep keep keep keep
 Bugfix: convert - Gif Writer
  - Fix non-launch error on Gif Writer
  - convert plugins - linting
  - convert/fs_media/preview/queue_manager - typing
  - Change convert items from dict to Dataclass 
tools/preview/preview.py