Fix WebAgg after write_png changes