check internet connection before download image for printing