Imaging transverse modes in a gigahertz surface-acoustic-wave cavity