<img id="myImg" src="https://other.domain/image.png" onerror="handleImageError()" />
<script>
function handleImageError() {
console.warn("Image failed to load – possibly due to CORP or network issues.");
// You could also send this info to your server manually
}
</script>