Updated render to take in a RealWorld so it knows about the size of the screen at render time.