Added code to find the bounding rectangles for a blob