Simplify image id lookup when testing images

Make use of docker inspect -f to retrieve just the image's ID when
tagging.