working but wrong
working but right
join overlapping blobs together and remove small ones