Helper to handle lens distortion