taking the image out of the dom