Optimize performance by batching draw calls. Closes #8.