Implement bitmap loading for WPF