Smoothed background rendering

Smoothed background rendering, stopping the screen sides from
flickering, by always rendering near the ends of the screen.