Add working webcam capture code
Refactor processing into process_image