fix a bug which prevented imagetag from correctly initializing the version and magic2...