I faced a problem as to remove image with JS code like a...
... document.getElementById(\'image_X\').src=\'\'
var image_x = document.getElementById('image_X'); image_x.parentNode.removeChild(image_x);
http://jsfiddle.net/5DdyL/