Only create image thumbnails for images.