Support RawJSONStream option for BuildImage.