write graphics script