Using Nearest Neighbors for Image Recognition