Set canvas width and height dynamically, all properties will be w.r.t canvas.width