fixes for non-square arrays (eg HuGene1.1)
change residual images default output format to jpg