WIP: ensure metadata isn't lost when using imgsaver