improved erasing for xcairo