Add captions and references to figures.