                          source=dict(alignments_version=self._alignments.version,
                                      original_filename=output,
                                      face_index=idx,
                                      source_filename=filename,
                                      source_is_video=self._frames.is_video))
              self._saver.save(output, encode_image(face.aligned.face, ".png", metadata=meta))
              if not self._arguments.large and self._is_legacy:
                  face.thumbnail = generate_thumbnail(face.aligned.face, size=96, quality=60)
                  self._alignments.data[filename]["faces"][idx] = face.to_alignment()
              face_count += 1
 
</s> remove                                     source_is_video=self._images.is_video))
 </s> add                                     source_is_video=self._images.is_video,
                                    source_frame_dims=extract_media.image_size)) </s> remove                                         source_is_video=self._globals.is_video))
 </s> add                                         source_is_video=self._globals.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
                                    source_is_video=self._frames.is_video,
                                    source_frame_dims=image.shape[:2]))
                          source=dict(alignments_version=self._alignments.version,
                                      original_filename=output,
                                      face_index=idx,
                                      source_filename=filename,
                                    source_is_video=self._frames.is_video,
                                    source_frame_dims=image.shape[:2]))
              self._saver.save(output, encode_image(face.aligned.face, ".png", metadata=meta))
              if not self._arguments.large and self._is_legacy:
                  face.thumbnail = generate_thumbnail(face.aligned.face, size=96, quality=60)
                  self._alignments.data[filename]["faces"][idx] = face.to_alignment()
              face_count += 1
keep keep keep keep replace keep keep keep keep keep
 extract: mask - Delete any mask from outside of frame boundaries 
tools/alignments/jobs.py