adapted so that it works with new pupil fit methods in mrgaze (lsq)