2palpic: use getopt, improve usage output, fix sprite_count 0 in binary out