Allowing arbitrary headers while downloading image