1. A method of enabling use of a camera module with a light source to take a picture of a scene, the camera module having a white-balance routine, the light source serving as a flash and emitting a light of changing spectrum when operated, the method comprising: transmitting to the camera module a value representative of a color spectrum capable of being emitted by the light source; operating the light source to emit light; performing a plurality of times a loop comprising: scanning an image; executing the white-balance routine on the image to derive a processed image; and employing the value in the executing of the white-balance routine to refine the value for use in a subsequent performance of the loop; and employing one of the processed images as the picture.