Set width/height variables based on canvas.