Wouldn't it be better to make a change to the core `FlxTilemap` instead of introducing all this redundant code?