PCA training: image paths as input (instead of a Dataset object)