Finding the bounding box of a blob