Move global canvas var to this.canvas