Imaging shapes of atomic nuclei in high-energy nuclear collisions