Auto brightness control using webcam imaging