updated width of canvas