Implemented render to texture for WPF.