floodfill to bounding rectangle