Texture Packer using Max Rectangles algorithm