BitmapImage extension method added.