              the selected frame """
          if self.current_frame != frame:
              self.get_faces(frame)
          sizes = list()
          for matrix in self.matrices:
              original_roi = self.original_roi(matrix)[0].squeeze()
              top_left, top_right = original_roi[0], original_roi[3]
              len_x = top_right[0] - top_left[0]
              len_y = top_right[1] - top_left[1]
              if top_left[1] == top_right[1]:
                  length = len_y
              else:
 
</s> remove 
    def get_aligned_landmarks_for_frame(self, frame, landmarks_xy,
                                        update=False):
        """ Return the transposed landmarks for the selected face """
        if self.current_frame != frame or update:
            self.get_faces(frame)
        aligned_landmarks = list()
        if not self.matrices:
            return aligned_landmarks
        for idx, landmarks in enumerate(landmarks_xy):
            matrix = self.matrices[idx]
            aligned_landmarks.append(
                self.extractor.transform_points(landmarks,
                                                matrix,
                                                self.size,
                                                self.padding))
        return aligned_landmarks
 </s> add  </s> remove         mat = matrix * (self.size - 2 * self.padding)
        mat[:, 2] += self.padding
        mat = cv2.invertAffineTransform(mat)
        return [cv2.transform(points, mat)]

    def get_faces_for_frame(self, frame, update=False):
 </s> add     def get_faces_in_frame(self, frame, update=False): </s> remove     def get_roi_for_frame(self, frame, update=False):
        """ Return the original rois for the selected frame """
        if self.current_frame != frame or update:
            self.get_faces(frame)
        return [self.original_roi(matrix) for matrix in self.matrices]

 </s> add  </s> remove             top_left = [point for point in roi[0].squeeze()[0]]
 </s> add             top_left = [point for point in roi.squeeze()[0]] </s> remove             polylines(self.image, roi, True, color, thickness)
 </s> add             polylines(self.image, [roi], True, color, thickness)
        for face in self.faces:
            top_left, top_right = face.original_roi[0], face.original_roi[3]
              the selected frame """
          if self.current_frame != frame:
              self.get_faces(frame)
          sizes = list()
        for face in self.faces:
            top_left, top_right = face.original_roi[0], face.original_roi[3]
        for face in self.faces:
            top_left, top_right = face.original_roi[0], face.original_roi[3]
        for face in self.faces:
            top_left, top_right = face.original_roi[0], face.original_roi[3]
              len_x = top_right[0] - top_left[0]
              len_y = top_right[1] - top_left[1]
              if top_left[1] == top_right[1]:
                  length = len_y
              else:
keep keep keep keep replace replace 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/media.py