              face_index = metadata["source"]["face_index"]
              alignment = self._alignments.get_faces_in_frame(frame_name)
              if not alignment or face_index > len(alignment) - 1:
                  self._counts["skip"] += 1
                  logger.warning("Skipping Face not found in alignments file. skipping: '%s'",
                                 filename)
                  continue
              alignment = alignment[face_index]
              self._counts["face"] += 1
  
              if self._check_for_missing(frame_name, face_index, alignment):
 
</s> remove                 if not metadata:
                    # Face not found
 </s> add                 if not metadata:  # Face not found </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) </s> remove                                    centering="face",
 </s> add                                    centering=mask.stored_centering,
                logger.warning("Skipping Face not found in alignments file: '%s'", filename)
              face_index = metadata["source"]["face_index"]
              alignment = self._alignments.get_faces_in_frame(frame_name)
              if not alignment or face_index > len(alignment) - 1:
                  self._counts["skip"] += 1
                logger.warning("Skipping Face not found in alignments file: '%s'", filename)
                logger.warning("Skipping Face not found in alignments file: '%s'", filename)
                  continue
              alignment = alignment[face_index]
              self._counts["face"] += 1
  
              if self._check_for_missing(frame_name, face_index, alignment):
keep keep keep keep replace 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