update to fix width for canvas