Added an error event dispatch when an image cannot be loaded.