My Mod of XTiled from https://bitbucket.org/vinull/xtiled