Make lib more resistant to slow-loading images.