Fix canvas and viewport size