Rewrite render code for flexible ploidy