ignore images and pdfs