updated webcam example with newer pref setting