Define tag-image function

It closes #22.
Define helper function parse-repository-tag

This function is not used yet but it will be likely useful once we
refactor the API to make it simple to use.