adding thumbnail to search table