When saving a version, retrieve the commit ID to make sure the image has the same version UUID than the one extracted from git.