You can use the PIL library to load / save images and convert to / from numpy arrays.
import Image, numpy
i = Image.open('img.png')
i = i.convert('L')
a = numpy.asarray(i)
b = abs(numpy.fft.rfft2(a))
j = Image.fromarray(b)
j.save('img2.png')
abs , FFT , . , FFT - axes rfft2, .
Edit:
FFT , :
import Image, numpy
i = Image.open('img.png')
i = i.convert('L')
a = numpy.asarray(i)
b = numpy.fft.rfft2(a)
c = numpy.fft.irfft2(b)
j = Image.fromarray(c.astype(numpy.uint8))
j.save('img2.png')