Rewrote PVR twiddler (no more recursion). Some changes to how mipmaps are handled.