Use png accessor functions for incomplete types

* libplot/z_write.c (_pl_z_maybe_output_image, _our_error_fn_stdio):
  modified