navigator.onLine and getting offline images.