Added texture update batching. Added rect packing.