Made the image conversion programs use connected components with mode==label and added mode==relabel to have the original labeling behavior.
Added black/white thresholding.