Currently, docker doesn't complain if you create an image with, for example, a colon in the name. However, if you then try to reference that image name, docker may believe you are pegging a specific version (since we use format $IMAGE_NAME:$REVISION) and certain commands will fail.
Validate and/or sanitize image names so, at the very least, they cannot contain colons.