deleting image domains before storing a new image