zh:refactor render part and add rectangleRGBA