BUGFIX: reconstruction of pca now produces equivalent number of layers as input stack