          detected_face: `lib.FacesDetect.detected_face`
              A detected_face object for a face
  
          Returns
          numpy.ndarray:
              A preview image depending on the output type in one of the following forms:
                - Containing 3 sub images: The original face, the masked face and the mask
                - The mask only
                - The masked face
          """
 
</s> remove         mask = detected_face.mask[self._mask_type]
 </s> add         mask = detected_face.mask[mask_type] </s> remove         filename = os.path.join(self._saver.location, "{}_{}_{}".format(
            os.path.splitext(frame)[0],
            idx,
            self._output["suffix"]))
 </s> add         if self._update_type == "output" and self._mask_type == "bisenet-fp":
            mask_types = [f"{self._mask_type}_{area}" for area in ("face", "head")]
        else:
            mask_types = [self._mask_type] </s> remove             mask = cv2.resize(detected_face.mask[self._mask_type].mask,
 </s> add             mask = cv2.resize(detected_face.mask[mask_type].mask, </s> remove     def _create_image(self, detected_face):
 </s> add         for mask_type in mask_types:
            filename = os.path.join(self._saver.location, "{}_{}_{}".format(
                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):
        -------
        :class:`numpy.ndarray`:
          detected_face: `lib.FacesDetect.detected_face`
              A detected_face object for a face
  
          Returns
        -------
        :class:`numpy.ndarray`:
              A preview image depending on the output type in one of the following forms:
                - Containing 3 sub images: The original face, the masked face and the mask
                - The mask only
                - The masked face
          """
keep keep keep keep replace keep keep keep keep keep
 mask tool - Update to support masks that support multi-centering 
tools/mask/mask.py