rudimentary sprite batching