minor code optimization for Rectangle::render()