Minor modernization- use atomic stack operations to reduce locks and avoid race conditions- improve spelling- break overlong lines- better align comments with actual code
Drop the pointsize parameter, use size instead, yielding more predictable results across Imagemagik versions and more controllable in general, make the wavelength randomized in the distortion