hai jonathan,
i also worked on the same idea you just told me ,
just is one function example . just open the examples browser and in the search give "2D".
and you, will find a very good fft function in in 2d,
you can do the same by converting the image to array
and and use the same function,
regards,
sundar.