Refactoring DefaultTexturePacker