[WPF] Fix bitmap conversion issue