more careful edge checks
(#601)
unit tests for option to load pupil plane image
(#601)