Modified random phase spectrum so that phasespec[0][0] = 0 -- this preserves mean value of image.
Updated code and doc to match.