Distortion calculation and removal for an off-axis and wide angle camera