Fix Megatools thumbnails for PDF (issue #5)