Add polygon perimeter drawing

No longer needed now that matplotlib is a dependency.