Combine re element into constructPath

sorry, actually set of moveTo/lineTos/and closePath operations with `ctx.`