added custom renderThumbnail callback