adds content-length headers to raw image download