Fix issue with canvas width property