Delay xml_update_image_info() until write