Add an error handler so client’s can react when an image fails to load

I needed to know when an image failed to load.
That small enhancement allow my code to be notified and adapt behavior.