Photoionization, transition probabilities, and opacities