At the same time, remove one spurious background/frame rendering, and simplify the code a great deal.