Fixing the add_pdf in XnatUtils