pca: implement project of patches in eigenspace