pass drawn polygon to server