hide the image or the link after clicking on remove