                  self._save(frame_name, face_index, detected_face)
              else:
                  media = ExtractMedia(filename, image, detected_faces=[detected_face])
                  setattr(media, "mask_tool_face_info", metadata["source"])  # TODO formalize
                  queue.put(media)
                  self._counts["update"] += 1
          if self._update_type != "output":
              queue.put("EOF")
 
</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 
 </s> add             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 </s> remove     @staticmethod
    def _resize(image, target_size):
 </s> add     @classmethod
    def _resize(cls, image, target_size):
                # Hacky overload of ExtractMedia's shape parameter to apply the actual original
                # frame dimension
                media._image_shape = (*metadata["source"]["source_frame_dims"], 3)
                  self._save(frame_name, face_index, detected_face)
              else:
                  media = ExtractMedia(filename, image, detected_faces=[detected_face])
                # Hacky overload of ExtractMedia's shape parameter to apply the actual original
                # frame dimension
                media._image_shape = (*metadata["source"]["source_frame_dims"], 3)
                  setattr(media, "mask_tool_face_info", metadata["source"])  # TODO formalize
                  queue.put(media)
                  self._counts["update"] += 1
          if self._update_type != "output":
              queue.put("EOF")
keep keep add keep keep keep keep keep
 extract: mask - Delete any mask from outside of frame boundaries 
tools/mask/mask.py