private TempFile MakeTempPNGImage(int width, int height) { var file = TempFile.WithExtension(".png"); File.Delete(file.Path); using (var x = new Bitmap(width, height)) { x.Save(file.Path, ImageFormat.Png); } return file; }