Are you extracting the DFT components, and using the "same" (original or modified) ones to calculate the iDFT? Juan is using some FITS keywords to identify the components, (coordinate system, component type, etc), so if you are using a clone, or a synthetic image, it won't work with the stantard process.
If you are using PCL or PSJR classes, you may use any image you want, as long as it is a complex one.