async call
added logical to make sure bad URLs doesn't affect the display of images