Canvas dynamic width resize