fixing arguments so webcam doesnt produce null