handle img onerror event once