public static string GetBase64Thumbnail(this DiaryImage image) => Convert.ToBase64String(image.Thumbnail);
public static string GetSizeKbString(this DiaryImage image) => Math.Round(image.SizeByte / 1024f, 2).ToString(CultureInfo.InvariantCulture) + " Kb";
public static int GetBiggestImageDimm(this DiaryImage image) => image.Width > image.Height ? image.Width : image.Height;