add thumbnail generation for PDF files