fix wrong untag while docker rmi

docker rmi was buggy when using docker rmi repo:tag when the same image was present multiple times in the same repo using different tags (ubuntu:12.04 and ubuntu:precise for example)

Fixes #2325