Techniques and systems are provided for processing one or more images. In one example, a method of processing a plurality of images comprises: obtaining a first image captured using a first aperture setting; obtaining a second image captured using a second aperture setting, the first aperture setting being associated with a smaller aperture size than an aperture size associated with the second aperture setting; detecting pixels of the first image having lens flare; and generating an output image by combining the first image and the second image, the first image and the second image being combined by replacing the pixels of the first image having the lens flare with corresponding pixels of the second image.