Template support for polygon drawing