Build the base images