private void PauseButton_Click(object sender, RoutedEventArgs e)
 {
     ImageEx.Pause();
 }