I faced a problem as to remove image with JS code like a...
... document.getElementById(\'image_X\').src=\'\'
1) remove img element using parent node. 2) Then, Store that parent node. 3) Then, create new img element in that parent node.