          if self.file.lower() == "dfl":
              return "dfl"
          return os.path.splitext(self.file)[1].lower()
  
      def get_destination_format(self, destination_format):
          """ Standardise the destination format to the correct extension """
          extensions = {".json": "json",
                        ".p": "pickle",
                        ".yml": "yaml",
                        ".yaml": "yaml"}
 
</s> remove     def get_source_format(self):
        """ Get the source alignments format """
        if self.file.lower() == "dfl":
            return "dfl"
        return os.path.splitext(self.file)[1].lower()
 </s> add     def set_dfl(self, verbose, destination_format):
        """ Set the alignments for dfl alignments """
        self.verbose = verbose
        self.file = "dfl"
        self.set_destination_format(destination_format) </s> remove         if os.path.split(self.file.lower())[1] == "dfl":
            self.file = "dfl"
        if self.file.lower() == "dfl":
 </s> add         folder, filename = os.path.split(alignments_file)
        if filename.lower() == "dfl":
            folder = None
            filename = "dfl" </s> remove         if self.verbose:
            print("Alignments file exists at {}".format(self.file))
        return
 </s> add         if verbose and folder:
            print("Alignments file exists at {}".format(alignments_file))
        return folder, filename </s> remove     def check_file_exists(self):
 </s> add     @staticmethod
    def check_file_exists(alignments_file, verbose):
    def set_destination_format(self, destination_format):
          if self.file.lower() == "dfl":
              return "dfl"
          return os.path.splitext(self.file)[1].lower()
  
    def set_destination_format(self, destination_format):
          """ Standardise the destination format to the correct extension """
          extensions = {".json": "json",
                        ".p": "pickle",
                        ".yml": "yaml",
                        ".yaml": "yaml"}
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/media.py