WPF implementation for using camera