Adding a method to calculate bounds from polygons