Fixed PDF thumbnail to use .png extension

Had to separate image and pdf thumbnail creation. To simplify things we
are just going to name all pdf document thumbnails, thumb.png.
Fixed PDF thumbnails