More robust Tiff validation, creation of yaml file and saving of marc record.