fix to allow paperclip to take pdfs