Principal Components Analysis - MNIST visualization, finding the optimal number of principal components