ENH: Write different posteriors for EM and KNN

At each iteration, the debugging posterior images resulted from EM and KNN
methods, in additon to the debugging KNN thresholded label images are written
to the disk.