If the image name containes a repository, strip it.