1. A method, comprising: receiving at least image data of a reference image captured using a first level of flash energy and image data of a main image captured using a second level of flash energy that is higher than said first level of flash energy; and determining image data of a third image at least based on said image data of said reference image and said image data of said main image, wherein said third image is a representation of said main image with removed artifacts, wherein said determining of said image data of said third image comprises performing a factor analysis of a set of data formed from said image data of said reference image and said image data of said main image, and applying a transformation matrix obtained from said factor analysis to said set of data to obtain image data of a fourth image; wherein said image data of said third image is determined at least based on said image data of said fourth image; wherein said factor analysis is a principal component analysis of said set of data, said principal component analysis determining a common part and a different part with respect to said image data of said reference image and said image data of said main image; and wherein said transformation matrix is a matrix obtained from said principal component analysis and a modified transformation matrix determined to suppress or reverse said different part.