draw polygon method changes context