Merge "pass blobs to write_raw_image() instead of using temp file"