Doing replacement on imagebuild