PCA should be done on all images, not only the training ones