added has_small_img flag to return of largest_image_url function