Fix image capture from webcam
Rename variable to avoid shadowing