Before this patch, the logged information used image.major_tag instead of img.major_tag (previous loop).