image download with buffer