add 'error' and 'abort' event listener for image loader