normalizes a 2d path to its bounding box