          logger.info("Saving video meta information to Alignments file")
  
          for idx, pts in enumerate(pts_time):
              meta = dict(pts_time=pts, keyframe=idx in keyframes)
              key = "{}_{:06d}.png".format(basename, idx + 1)
              if key not in self.data:
                  self.data[key] = dict(video_meta=meta, faces=[])
              else:
                  self.data[key]["video_meta"] = meta
  
 
</s> remove     orig_filename = "{}_{}.png".format(os.path.splitext(src_fname)[0], face_idx)
    meta = dict(alignments=detected_face.to_png_meta(),
                source=dict(alignments_version=alignments.version,
 </s> add     orig_filename = f"{os.path.splitext(src_fname)[0]}_{face_idx}.png"
    meta = PNGHeaderDict(alignments=detected_face.to_png_meta(),
                         source=PNGHeaderSourceDict(
                            alignments_version=alignments.version, </s> remove                 output = "{}_{}{}".format(frame_name, str(face_idx), ".png")
 </s> add                 output = f"{frame_name}_{face_idx}.png" </s> remove             filename = "{}_{:06d}.png".format(vidname, frame_idx + 1)
 </s> add             filename = f"{vidname}_{frame_idx + 1:06d}.png" </s> remove                 face.x, face.y, face.w, face.h = box
 </s> add                 face.left, face.top, face.width, face.height = box </s> remove                 for key in face.get("mask", dict()):
 </s> add                 for key in face.get("mask", {}):
            key = f"{basename}_{idx + 1:06d}.png"
          logger.info("Saving video meta information to Alignments file")
  
          for idx, pts in enumerate(pts_time):
              meta = dict(pts_time=pts, keyframe=idx in keyframes)
            key = f"{basename}_{idx + 1:06d}.png"
              if key not in self.data:
                  self.data[key] = dict(video_meta=meta, faces=[])
              else:
                  self.data[key]["video_meta"] = meta
  
keep keep keep keep replace keep keep keep keep keep
 lib.align updates:
  - alignments.py
    - Add typed dicts for imported alignments
    - Explicitly check for presence of thumb value in alignments dict
    - linting
  - detected_face.py
    - Typing
    - Linting
    - Legacy support for pre-aligned face
    - Update dependencies to new property names 
lib/align/alignments.py