some work on moving texture packer functionality from one classes to another (still not finished)