a better technique for clearing the ends of the panel on wide screens

Instead of having the panel draw over the background, do the
arithmetic to clear only the end regions needed. Fixes #3.