protected override void ExportCore(Bitmap obj, Stream stream, string filename = null)
 {
     obj.Save(stream, filename != null ? ImageFormatHelper.GetImageFormatFromPath(filename) : ImageFormat.Png);
 }