Added buffer size to the renderer