When saving an error image do not mangle the metadata causing notices