fix bug when writing PONI file(related to issue #36)
input sanitizing
Work with "float" masks or masks with True at -10
Fix issue #37 where multiple (i.e. 4) rings were selected in
pyFAI-calib when image was binned (2x2)