Expand environment variables in image on `docker pull` and `docker run`

I am not sure whether it was done on purpose, but the image name was one of the only property from the config where env variables were not expanded.