the code works as expected, when i generate a new surface everytime a picture is drawn
i can now display field and its fouriertransform at the same time