Update MainWindow.xaml.cs

Copy dataurl after encode