BitmapImage has not been initialized. Call the BeginInit method, set the appropriate properties, and then call the EndInit ...