added support for thumbnails