more sprite batching code