cleaning up FFTimage code