private static WriteableBitmap LoadBitmap(string path) { using var fs = File.OpenRead(path); return(WriteableBitmap.Decode(fs)); }