taking picture with webcam working based largely off of addyosmani demo