adapt build image