The effect of photoionization on positive streamers in CO$_2$ studied with 2D particle-in-cell simulations