download the image into a temp file and hand it off to caller

Change-Id: I3fa380eea1a075abd17d26d6179e798a16f81411