Update imagesearch.py

update imagesearch.py to print the index of the last search result.