fourier optics works with new source
various changes to replace source field and image field