                  os.path.splitext(frame)[0],
                  idx,
                  f"{mask_type}_{self._output['suffix']}"))
              image = self._create_image(detected_face, mask_type)
              logger.trace("filename: '%s', image_shape: %s", filename, image.shape)
              self._saver.save(filename, image)
  
      def _create_image(self, detected_face, mask_type):
          """ Create a mask preview image for saving out to disk
  
 
</s> remove     def _create_image(self, detected_face, mask_type):
 </s> add     def _create_image(self, detected_face: DetectedFace, mask_type: str) -> np.ndarray: </s> remove             filename = os.path.join(self._saver.location, "{}_{}_{}".format(
                os.path.splitext(frame)[0],
                idx,
                f"{mask_type}_{self._output['suffix']}"))
 </s> add             filename = os.path.join(
                self._saver.location,
                f"{os.path.splitext(frame)[0]}_{idx}_{mask_type}_{self._output['suffix']}") </s> remove     def _save(self, frame, idx, detected_face):
 </s> add     def _save(self, frame: str, idx: int, detected_face: DetectedFace) -> None: </s> remove             queue = args[0]
 </s> add             queue = cast("EventQueue", args[0]) </s> remove         extractor_output: dict
 </s> add         extractor_output: :class:`plugins.extract.pipeline.ExtractMedia`
            logger.trace("filename: '%s', image_shape: %s", filename, image.shape)  # type: ignore
                  os.path.splitext(frame)[0],
                  idx,
                  f"{mask_type}_{self._output['suffix']}"))
              image = self._create_image(detected_face, mask_type)
            logger.trace("filename: '%s', image_shape: %s", filename, image.shape)  # type: ignore
              self._saver.save(filename, image)
  
      def _create_image(self, detected_face, mask_type):
          """ Create a mask preview image for saving out to disk
  
keep keep keep keep replace keep keep keep keep keep
 Minor updates and fixups
  - Mask Tool - Typing + BiSeNet mask update fix
  - Alignments Tool - Auto search for alignments file 
tools/mask/mask.py