              The queue to place incremental counts to for updating the GUI's progress bar
          """
          saver = ImagesSaver(str(get_folder(output_folder)), as_bytes=True)
          loader = ImagesLoader(self._input_location, count=self._alignments.frames_count)
          for frame_idx, (filename, image) in enumerate(loader.load()):
              logger.trace("Outputting frame: %s: %s", frame_idx, filename)
              src_filename = os.path.basename(filename)
              frame_name = os.path.splitext(src_filename)[0]
              progress_queue.put(1)
 
</s> remove             basename = os.path.basename(filename)
            frame_name = os.path.splitext(basename)[0]
            extension = ".png"
            final_faces = []
 </s> add             src_filename = os.path.basename(filename)
            frame_name = os.path.splitext(src_filename)[0] </s> remove         extension = ".png"
 </s> add  </s> remove         for filename, image, hsh in tqdm(self._loader.load(), total=self._loader.count):
            if hsh not in self._alignments.hashes_to_frame:
 </s> add         for filename, image, metadata in tqdm(self._loader.load(), total=self._loader.count):
            if not metadata:  # Legacy faces. Update the headers
                if not log_once:
                    logger.warning("Legacy faces discovered. These faces will be updated")
                    log_once = True
                metadata = update_legacy_png_header(filename, self._alignments)
                if not metadata:
                    # Face not found
                    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: </s> remove             for frame, idx in self._alignments.hashes_to_frame[face.hash].items():
                self._alignments.update_face(frame, idx, face.to_alignment())
                if self._saver is not None:
                    face.image = extractor_output.image
                    self._save(frame, idx, face)
 </s> add             frame_name = extractor_output.mask_tool_face_info["source_filename"]
            face_index = extractor_output.mask_tool_face_info["face_index"]
            logger.trace("Saving face: (frame: %s, face index: %s)", frame_name, face_index)

            self._alignments.update_face(frame_name, face_index, face.to_alignment())
            metadata = dict(alignments=face.to_png_meta(),
                            source=extractor_output.mask_tool_face_info)
            self._faces_saver.save(extractor_output.filename,
                                   encode_image(extractor_output.image, ".png", metadata=metadata))

            if self._saver is not None:
                face.image = extractor_output.image
                self._save(frame_name, face_index, face) </s> remove     def get_missing_alignments(self):
 </s> add     def _get_missing_alignments(self):
        extension = ".png"

              The queue to place incremental counts to for updating the GUI's progress bar
          """
          saver = ImagesSaver(str(get_folder(output_folder)), as_bytes=True)
          loader = ImagesLoader(self._input_location, count=self._alignments.frames_count)
        extension = ".png"

          for frame_idx, (filename, image) in enumerate(loader.load()):
              logger.trace("Outputting frame: %s: %s", frame_idx, filename)
              src_filename = os.path.basename(filename)
              frame_name = os.path.splitext(src_filename)[0]
              progress_queue.put(1)
keep keep keep add keep keep keep keep keep
 Update extracted faces to use PNG EXIF data (#1123)

Documentation
  - Update Usage.md, align.rst and image.rst
lib.image.py
  - read_image - Remove hash return, add metadata return
  - Remove read_image_hash functions
  - Add read_image_meta functios
  - Replace encode_image_with_hash with encode_image (to store metadata)
  - Add png meta reading and writing functions
  - Update Image Loaders/Savers to handle metadata rather than hashes
lib.training_data
  - Naming updates to remove references to hashes
lib.align.Alignments
  - Add versioning notes
  - Increment alignments version to 2.1
  - Deprecate hashing lookup functions
  - Replace filter_hashes with filter_faces
lib.align.detected_face
  - DetectedFace
    - Remove hash property
    - Add png header data serializing/deserializing functions
  - Mask
    - Add png header data serializing/deserializing functions
  - add update_legacy_png_header function to update png meta data
lib.cli.args - Deprecate alignments files for training
- plugins.train.trainer
  - Update alignments/mask code to read png header data
- scripts.convert
  - Aligned images folder - read data from png headers
- scripts.extract
  - Write png header information and no longer store hash of face
- tools.alignments
  - remove leftover-faces, merge and update-hashes jobs
  - Update jobs to use png meta data rather than hashes
- tools.manual
  - Update extract code to output png meta data and don't store hashes
  - Perform check on launch that tool is not pointing at a faces folder
tools.mask
  - Update to use png meta data
tools.sort
  - Update to use png meta data 
tools/manual/detected_faces.py