          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(),
                  alignment)
              self.interface.set_redraw(True)
  
          self.interface.state["edit"]["updated"] = True
          self.interface.state["edit"]["update_faces"] = True
 
</s> remove             idx = self.alignments.add_alignment(frame, alignment)
 </s> add             idx = self.alignments.add_face(frame, 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         faces = self.set_faces(frame_name, alignments).image
 </s> add         faces = self.set_faces(frame_name).image
            self.alignments.update_face(frame,
                                        self.interface.get_selected_face_id(),
                                        alignment)
          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_face(frame,
                                        self.interface.get_selected_face_id(),
                                        alignment)
            self.alignments.update_face(frame,
                                        self.interface.get_selected_face_id(),
                                        alignment)
            self.alignments.update_face(frame,
                                        self.interface.get_selected_face_id(),
                                        alignment)
            self.alignments.update_face(frame,
                                        self.interface.get_selected_face_id(),
                                        alignment)
              self.interface.set_redraw(True)
  
          self.interface.state["edit"]["updated"] = True
          self.interface.state["edit"]["update_faces"] = True
keep keep keep keep replace replace replace replace 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