This gonna be hard !
attempt for a fit2d mask writer