          if not self._output["full_frame"] or self._input_is_faces:
              if self._input_is_faces:
                  face = AlignedFace(detected_face.landmarks_xy,
                                     image=detected_face.image,
                                     centering="face",
                                     size=detected_face.image.shape[0],
                                     is_aligned=True).face
              else:
                  centering = "legacy" if self._alignments.version == 1.0 else "face"
                  detected_face.load_aligned(detected_face.image, centering=centering)
 
</s> remove                 centering = "legacy" if self._alignments.version == 1.0 else "face"
 </s> add                 centering = "legacy" if self._alignments.version == 1.0 else mask.stored_centering </s> remove         else:
            self._extractor_input_thread.join()
 </s> add         self._extractor_input_thread.join()
        if self._saver is not None: </s> remove             self._extractor_input_thread.join()
 </s> add  </s> remove         if self._centering == "legacy":
            crop_offset = reference_face.pose.offset["face"] * -1
 </s> add         mask_centering = detected_face.mask[self._args.mask_type].stored_centering
        if self._centering != mask_centering:
            crop_offset = reference_face.pose.offset[mask_centering] * -1 </s> remove                 if not metadata:
                    # Face not found
 </s> add                 if not metadata:  # Face not found
                                   centering=mask.stored_centering,
          if not self._output["full_frame"] or self._input_is_faces:
              if self._input_is_faces:
                  face = AlignedFace(detected_face.landmarks_xy,
                                     image=detected_face.image,
                                   centering=mask.stored_centering,
                                     size=detected_face.image.shape[0],
                                     is_aligned=True).face
              else:
                  centering = "legacy" if self._alignments.version == 1.0 else "face"
                  detected_face.load_aligned(detected_face.image, centering=centering)
keep keep keep keep replace keep keep keep keep keep
 core mask updates:
  - Add support for different mask centering
  - Update legacy alignments to store mask centering
  - Bugfix: lib.image ImageIO. Ensure unique queues are created (fixes mask tool when Face is input and an output folder is provided) 
tools/mask/mask.py