Combine re element into constructPath

shall be `ctx.rect(x, y, width, height);` here