Added a retry for when the image fails to load.