added: check for internet connection and check for imgs