Add generate_tsx method for generating tilesets