Allow for a larger screen, 48 by 170.

And also put in some runtime checks so that screens even larger
don't cause memory overruns and god knows what else, which they did before.