added scaling to debug-bufferpolygon