there's no way to get the bounding box of a path without cloning the path and calling into_outline on the clone. this is slow.