moved flatField() to jmFijiGen.py