associating thumbnails in search results with the right url