Check connection when add photos