          rename_count = self._rename_faces(rename_mappings)
          logger.info("%s faces renamed", rename_count)
  
      def _rename_faces(self, filename_mappings: List[Tuple[str, str]]) -> int:
          """ Rename faces back to their original name as exists in the alignments file.
  
          If the source and destination filename are the same then skip that file.
  
 
</s> remove                                   if face[0] != face[1]["original_filename"]],
 </s> add                                   if face[0] != face[1]["source"]["original_filename"]], </s> remove         filelist = cast(List[Tuple[str, "PNGHeaderSourceDict"]], self._faces.file_list_sorted)
        rename_mappings = sorted([(face[0], face[1]["original_filename"])
 </s> add         filelist = cast(List[Tuple[str, "PNGHeaderDict"]], self._faces.file_list_sorted)
        rename_mappings = sorted([(face[0], face[1]["source"]["original_filename"]) </s> remove     with_alignments: bool, optional
        By default, only the source information stored in the PNG header will be returned in
        :attr:`file_list_sorted`. Set to ``True`` to include alignment information as well.
        Default:``False``
 </s> add  </s> remove         for face in cast(Union[List[Tuple[str, "PNGHeaderDict"]],
                               List[Tuple[str, "PNGHeaderSourceDict"]]],
                         self.file_list_sorted):
            src: "PNGHeaderSourceDict" = cast(
                "PNGHeaderDict",
                face[1])["source"] if self._with_alignments else cast("PNGHeaderSourceDict",
                                                                      face[1])
 </s> add         for face in cast(List[Tuple[str, "PNGHeaderDict"]], self.file_list_sorted):
            src = face[1]["source"] </s> remove         for item in tqdm(cast(List[Tuple[str, "PNGHeaderSourceDict"]], self._items),
 </s> add         for item in tqdm(cast(List[Tuple[str, "PNGHeaderDict"]], self._items),
        filelist = cast(List[Tuple[str, "PNGHeaderDict"]], self._faces.file_list_sorted)
        copyback = FaceToFile(self._alignments, [val[1] for val in filelist])
        if copyback():
            self._alignments.save()

          rename_count = self._rename_faces(rename_mappings)
          logger.info("%s faces renamed", rename_count)
  
        filelist = cast(List[Tuple[str, "PNGHeaderDict"]], self._faces.file_list_sorted)
        copyback = FaceToFile(self._alignments, [val[1] for val in filelist])
        if copyback():
            self._alignments.save()

      def _rename_faces(self, filename_mappings: List[Tuple[str, str]]) -> int:
          """ Rename faces back to their original name as exists in the alignments file.
  
          If the source and destination filename are the same then skip that file.
  
keep keep add keep keep keep keep keep
 Alignments Tool updates
  - Copy info back to alignments file from faces 
tools/alignments/jobs_faces.py