Returns the Docker image ID for a build.