1. A computer-implemented method comprising: receiving a first training image taken by a camera module of a mobile device and a corresponding image-context attribute from the mobile device; aggregating the first training image into a set of contextually similar images based on the image-context attribute; computing a calibration parameter model based on the set of contextually similar images utilizing dimension reduction statistical analysis; and causing an image processor to calibrate a raw photograph of the camera module by providing the calibration parameter model to the image processor.