image reader functions now return metadata