Add support for thumbnails.