all that remained were three bare and barren islands and a dozen towering stacks of rock that rose from the water like the pillars of some sea god 's temple , while the angry waves foamed and crashed among them .