Resize canvas based on screen size