fleshed out downloading image