FlxAtlas refactoring