refactor, improve gimp json export