Correctly handle an image name with a port in the repo name