Parse tag from image

This makes it possible to specify the tag if you want to replace a
existing container.