Camera based controlling of lights