Lots of pixmap update logic.