I improved the handling of failed image-loading.