              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             index = int(filename[filename.rindex("_") + 1:])
            original_file = "{}".format(filename[:filename.rindex("_")])
 </s> add             index = 0
            original_file = ""
            if not self.dfl:
                index = int(filename[filename.rindex("_") + 1:])
                original_file = "{}".format(filename[:filename.rindex("_")]) </s> remove                                self.verbose)
 </s> add                                self.verbose,
                               dfl=True) </s> remove         return bool(number_alignments == 0
                    or number_alignments == number_faces)
 </s> add         return bool(number_alignments in(0, number_faces)) </s> remove                 else:
                    dfl.seek(chunk_length+12, os.SEEK_CUR)
 </s> add                 dfl.seek(chunk_length+12, os.SEEK_CUR)
            top_left, top_right = original_roi[0], original_roi[3]
              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:
keep keep keep keep replace keep keep keep keep keep
 Alignments Tool - Fix DFL Index bug (#526)

* Alignments tool. Fix DFL Alignments index bug 
tools/lib_alignments/media.py