Adding support for failure when the image cannot be loaded.