Select 0th tileset automatically
Rewrite I/O code with stream class