add support for passing the downloaded image back