LaTeX reader: Handle \caption for images in figures.

Closes #766.