use setStroke in drawing the path