Moved get_neighbors to LabeledImage