You could just hide it. In vanilla JS that would be:
document.getElementById("image_X").style.display='none';
In jQuery:
$("#image_X").css('display', 'none');
If you really want to remove it from DOM, there is removeChild
method you could invoke on the parentNode
of your image element.