added SPQuadBatch class and using it for rendering