Fix differenced redraw artifacts during pan/zoom

Fixes #543.