Add caption and related methods.

Add caption and related methods.
And fix bugs of https://github.com/dahlia/wand/pull/73.