working bounding box. needs a fix for all polygons outside of the page