The image illustrates the vesicular texture which develops when lava containing some gas bubbles cools and solidifies before the gas escapes into the atmosphere.

Source: NASA