Thumbnail generator for images, videos and PDFs