add thumbnail to index