Added webcam resolution check.