Generate thumbnails only for supported file types