Handle errors on loading images