Fix what happens when image loading fails