Auto size canvas based on screen width