                      self._counts["skip"] += 1
                      logger.warning("Legacy face not found in alignments file. This face has not "
                                     "been updated: '%s'", filename)
                      continue
  
              frame_name = metadata["source"]["source_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
 
</s> remove                                     source_is_video=self._frames.is_video))
 </s> add                                     source_is_video=self._frames.is_video,
                                    source_frame_dims=image.shape[:2])) </s> remove                                         image=item.get_image_copy(self.color_format),
 </s> add                                         image=image, </s> remove                 offset -= self.pose.offset["head"]
                offset *= (self._head_size - (self._head_size * _EXTRACT_RATIOS["head"]))
 </s> add                 adjusted = offset - self.pose.offset["head"]
                adjusted *= (self._head_size - (self._head_size * _EXTRACT_RATIOS["head"]))
            if "source_frame_dims" not in metadata["source"]:
                logger.error("The faces need to be re-extracted as at least some of them do not "
                             "contain information required to correctly generate masks.")
                logger.error("You can re-extract the face-set by using the Alignments Tool's "
                             "Extract job.")
                break
                      self._counts["skip"] += 1
                      logger.warning("Legacy face not found in alignments file. This face has not "
                                     "been updated: '%s'", filename)
                      continue
            if "source_frame_dims" not in metadata["source"]:
                logger.error("The faces need to be re-extracted as at least some of them do not "
                             "contain information required to correctly generate masks.")
                logger.error("You can re-extract the face-set by using the Alignments Tool's "
                             "Extract job.")
                break
              frame_name = metadata["source"]["source_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
keep keep keep keep replace keep keep keep keep keep
 extract: mask - Delete any mask from outside of frame boundaries 
tools/mask/mask.py