correct onImageUploadError event handler