1. A method of generating images, the method comprising: detecting an amount of motion, said detected amount of motion being a detected amount of motion of a camera device including multiple optical chains or a detected amount of motion between an image corresponding to a second time period and an image corresponding to a first time period; producing a reference image, from a plurality of images captured by different optical chains of said camera device, producing a reference image including at least one of: i) selecting a reference image from images captured by different optical chains based on the detected amount of motion or ii) synthesizing a reference image from at least two of said images captured by different optical chains based on the detected amount of motion; and using the reference image and at least one other image to generate a composite image.