I faced a problem as to remove image with JS code like a...
... document.getElementById(\'image_X\').src=\'\'
Try
document.getEelementById('image_X').src="''";
but it will display a broken image