minor changes to be able to load imagen (probably recent changes). Note that there is still a minor setup.py issue, in that the module transferfn, which lies in the hierarchy inside imagen, is not installed by the usual: python setup.py install
duty_cycle parameter is added to the class SquareGrating, to let the user generate an asymmetric SquareGrating