                                     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)
                  face = detected_face.aligned.face
              mask = cv2.resize(detected_face.mask[self._mask_type].mask,
                                (face.shape[1], face.shape[0]),
                                interpolation=cv2.INTER_CUBIC)[..., None]
 
</s> remove                                    centering="face",
 </s> add                                    centering=mask.stored_centering, </s> remove             mask.set_sub_crop(aln_face.pose.offset["face"] * -1)
 </s> add             mask.set_sub_crop(aln_face.pose.offset[mask.stored_centering] * -1, centering="legacy") </s> remove             mask.set_sub_crop(aln_face.pose.offset["face"] * -1)
 </s> add             mask.set_sub_crop(aln_face.pose.offset[mask.stored_centering] * -1, centering="legacy") </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 self._extract_version > 1.0 and self._centering == "legacy":
            mask.set_sub_crop(self._cache[key]["aligned_face"].pose.offset["face"] * -1)
 </s> add         mask.set_sub_crop(self._cache[key]["aligned_face"].pose.offset[mask.stored_centering] * -1,
                          self._centering)
                centering = "legacy" if self._alignments.version == 1.0 else mask.stored_centering
                                     centering="face",
                                     size=detected_face.image.shape[0],
                                     is_aligned=True).face
              else:
                centering = "legacy" if self._alignments.version == 1.0 else mask.stored_centering
                  detected_face.load_aligned(detected_face.image, centering=centering)
                  face = detected_face.aligned.face
              mask = cv2.resize(detected_face.mask[self._mask_type].mask,
                                (face.shape[1], face.shape[0]),
                                interpolation=cv2.INTER_CUBIC)[..., None]
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