1. An image sensor apparatus, comprising: an image sensor for generating image data based upon at least a color filter array and corresponding to an optical image; the color filter array comprising subgroups of pixels rearranged from a standard Bayer color filter array according to a vertical distortion module such that the color filter array is customized for a lens distortion model, the lens distortion model comprising the vertical distortion model and a horizontal distortion model; and a processor for processing the image data with a plurality of distortion correction routines to generate a digital image.