added images for download and added connection handler to handle online/offline modes