Remove an existing images before adding a new one to the element.