Intensity control of the optical beam