Text this: Principles of self-calibration and visual effects for digital camera distortion