Neutral meson production in relativistic heavy ion collisions