fix(tag): better tag parsing

the tag would not be parsed if the source images were to be
'ubuntu:12.04' or something similar.