An image processing device , comprising: an image sensor module including a lens and an image sensor, the image sensor having a color pattern of red, green, blue and white, RGBW, pixel sensors; a sensor configured to sense brightness of an ambient environment; and a processor configured to: obtain, through the sensor, brightness information on the ambient environment; obtain , using the image sensor module, a first image having first color information, the first image corresponding to an external object; move at least one of the lens and the image sensor based on a designated pixel unit; obtain , using the image sensor module with the moved at least one of the lens and the image sensor and using the brightness information on the ambient environment, a second image having second color information, the second image corresponding to the external object; and generate a third image having third color information based on the first color information and the second color information, the third image corresponding to the external object, wherein the at least one of the lens and the image sensor is moved so that a pixel in the second image, corresponding to a pixel in the first image having white information , has non-white information which is one of red information, green information, or blue information, and wherein the third image is generated by replacing or combining the white information of the pixel in the first image with the non-white information of the corresponding pixel in the second image. an image sensor module including a lens and an image sensor, the image sensor having a color pattern of red, green, blue and white, RGBW, pixel sensors; a sensor configured to sense brightness of an ambient environment; and a processor configured to: obtain, through the sensor, brightness information on the ambient environment; obtain , using the image sensor module, a first image having first color information, the first image corresponding to an external object; move at least one of the lens and the image sensor based on a designated pixel unit; obtain , using the image sensor module with the moved at least one of the lens and the image sensor and using the brightness information on the ambient environment, a second image having second color information, the second image corresponding to the external object; and generate a third image having third color information based on the first color information and the second color information, the third image corresponding to the external object, obtain, through the sensor, brightness information on the ambient environment; obtain , using the image sensor module, a first image having first color information, the first image corresponding to an external object; move at least one of the lens and the image sensor based on a designated pixel unit; obtain , using the image sensor module with the moved at least one of the lens and the image sensor and using the brightness information on the ambient environment, a second image having second color information, the second image corresponding to the external object; and generate a third image having third color information based on the first color information and the second color information, the third image corresponding to the external object, wherein the at least one of the lens and the image sensor is moved so that a pixel in the second image, corresponding to a pixel in the first image having white information , has non-white information which is one of red information, green information, or blue information, and wherein the third image is generated by replacing or combining the white information of the pixel in the first image with the non-white information of the corresponding pixel in the second image. <EOS>