drawBox switch to svg path drawing