check if image is used, then tag it with another name before new building