Fix images and pdfs.