Added Image.onerror handler and options.error callback.