Bring back accidentally removed ctx.beginPath();