confirm network is avaiable before download image