Huge rework of redrawing engine. Hope it's last.