Make canvas size adapted to screen size