Apparatus and a method for controlling a light source used for image reading