Re-added thumbnail generation for files that are not images.