Avoid calling lineTo on the same pixel for polygon stroke