creates thumbnails from pdf file