Increased BW function efficiency slightly.
Improved the relabel function to not only consecutively number the image but also find labels that define multiple connected regions and split them into two different regions.