Add polygon perimeter drawing

`perimeter` again throughout this file.