remove old images before create a new, fix depends