instead of only 10 query result we  now return the distance of all images in db.