releasetools: use temp file instead of passing blobs to write_raw_image()
              this is for compatibility with "older" recoveries.

Change-Id: Ib0beb6970033ae9e26232a29e0fda7764d6744f9