A method for reducing intensity variations in a video image stream depicting a scene, the method comprising: capturing, using an image sensor set to a first sensor setting, a first frame of the video image stream, wherein the first sensor setting is one or more chosen from the group comprising a sensor exposure time and a sensor gain; detecting a local change in intensity values in a portion of the first frame as compared with a frame preceding the first frame, the frame preceding the first frame being captured using the image sensor set to the first sensor setting, wherein the portion of the first frame represents a first area of the scene; determining a second sensor setting based on the intensity values in the first frame, wherein the second sensor setting is said one or more chosen from the group comprising the sensor exposure time and the sensor gain; capturing, using the image sensor set to the second sensor setting, a second frame (60, 70) of the video image stream, the second frame (60, 70) being subsequent to the first frame; creating a local tone mapping mask being an image mask comprising information related to a tone mapping of an image, wherein a local tone mapping of the local tone mapping mask in the first area of the scene is different from a local tone mapping of the local tone mapping mask in an area outside the first area of the scene, wherein the local tone mapping in the first area of the scene is based on the second sensor setting, and wherein the local tone mapping in the area outside the first area of the scene is based on a relation between the first sensor setting and the second sensor setting; and applying the local tone mapping mask to the second frame (60, 70) of the video image stream. capturing, using an image sensor set to a first sensor setting, a first frame of the video image stream, wherein the first sensor setting is one or more chosen from the group comprising a sensor exposure time and a sensor gain; detecting a local change in intensity values in a portion of the first frame as compared with a frame preceding the first frame, the frame preceding the first frame being captured using the image sensor set to the first sensor setting, wherein the portion of the first frame represents a first area of the scene; determining a second sensor setting based on the intensity values in the first frame, wherein the second sensor setting is said one or more chosen from the group comprising the sensor exposure time and the sensor gain; capturing, using the image sensor set to the second sensor setting, a second frame (60, 70) of the video image stream, the second frame (60, 70) being subsequent to the first frame; creating a local tone mapping mask being an image mask comprising information related to a tone mapping of an image, wherein a local tone mapping of the local tone mapping mask in the first area of the scene is different from a local tone mapping of the local tone mapping mask in an area outside the first area of the scene, wherein the local tone mapping in the first area of the scene is based on the second sensor setting, and wherein the local tone mapping in the area outside the first area of the scene is based on a relation between the first sensor setting and the second sensor setting; and applying the local tone mapping mask to the second frame (60, 70) of the video image stream.