Fix performance of Rectangle Render method.