Need a way to calculate bounding boxes for shapes