Got douglas-peucker to work with zoomable graphs