way to get all images need for knn classifier