added checking of Internet availability during photo updating process