Added method for getting the bounding box