Only load images when connection is there and try a few times in case of failures