fixed rendering problems in the SpriteBatcher class