rewrite graphics