Refactor buildCanvas(). Fix a couple of p.widths