Added extra_headers support to save method