                       "landmarksXY": face.landmarksXY}
          frame = self.media["frame_id"]
  
          if self.interface.get_selected_face_id() is None:
              idx = self.alignments.add_alignment(frame, alignment)
              self.interface.set_state_value("edit", "selected", idx)
          else:
              self.alignments.update_alignment(
                  frame,
                  self.interface.get_selected_face_id(),
 
</s> remove             self.alignments.update_alignment(
                frame,
                self.interface.get_selected_face_id(),
                alignment)
 </s> add             self.alignments.update_face(frame,
                                        self.interface.get_selected_face_id(),
                                        alignment) </s> remove         face = landmarks["detected_faces"][0]
        alignment = {"x": face.x,
                     "w": face.w,
                     "y": face.y,
                     "h": face.h,
                     "landmarksXY": face.landmarksXY}
 </s> add         alignment = landmarks["detected_faces"][0].to_alignment() </s> remove         elif self.src_format == "dfl":
 </s> add         elif self.file == "dfl": </s> remove         elif self.src_format in extensions.keys():
            dst_fmt = extensions[self.src_format]
 </s> add         elif file_ext in extensions.keys():
            dst_fmt = extensions[file_ext] </s> remove         alignment = self.alignments.get_alignments_for_frame(frame)[face_id]
 </s> add         alignment = self.alignments.get_faces_in_frame(frame)[face_id]
            idx = self.alignments.add_face(frame, alignment)
                       "landmarksXY": face.landmarksXY}
          frame = self.media["frame_id"]
  
          if self.interface.get_selected_face_id() is None:
            idx = self.alignments.add_face(frame, alignment)
              self.interface.set_state_value("edit", "selected", idx)
          else:
              self.alignments.update_alignment(
                  frame,
                  self.interface.get_selected_face_id(),
keep keep keep keep replace keep keep keep keep keep
 Fix convert-adjust (#531)

* Add dimensions to alignments + refactor

* Add frame_dims + funcs to DetectFaces. Add alignments lib

* Convert Adjust working

* Refactor and tidy up 
tools/lib_alignments/jobs_manual.py