Python to make a phase image.
Additional functions to get the gabors correct.