still untested added localized connected component detection for 3x3 neighborhood.