Implemented buildRenderSize.