How to correct wide angle lens distortion