Add figcaption and imgonly options to figure plugin.