https://dejanstojanovic.net/aspnet/2014/november/adding-extra-info-to-an-image-file/
private static void SetDateToken(FileInfo fileInfo, DateTime date, string path)
{
Image theImage = new Bitmap(fileInfo.FullName);
PropertyItem[] propItems = theImage.PropertyItems;
Encoding _Encoding = Encoding.UTF8;
var property = propItems[0];
property.Id = 0x9003;
property.Value = Encoding.UTF8.GetBytes(date.ToString("yyyy:MM:dd HH:mm:ss") + '\0');
property.Len = property.Value.Length - 1;
property.Type = 2;
theImage.SetPropertyItem(property);
property.Id = 0x9004;
property.Value = Encoding.UTF8.GetBytes(date.ToString("yyyy:MM:dd HH:mm:ss") + '\0');
property.Len = property.Value.Length - 1;
property.Type = 2;
theImage.SetPropertyItem(property);
theImage.Save(path + "\\" + fileInfo.Name, theImage.RawFormat);
theImage.Dispose();
}