Use new graphics api.