Graphics code upd