Computation of Randomized Phase Image and an Image with a Flat Power Spectrum