Correct mis-numbered figure labels

Placing the ``\label{}`` command before the figure caption messed up
the ``\ref{}`` such that all references pointed to the same figure. But
moving the label after the caption corrected this.