Parameterize base image and output image names.

Actually use parameters generated in last commit.