Simulating magnetooptic imaging with the tools of Fourier optics