getting thumbnails into toc for reference image