use last point for x/y when closing a path