Need to break sprite packer functions into smaller ones