MNIST visualization, finding the optimal number of principal components