added coregistration for SpatialKMeans and fixed plotting bugs