Relative URLs check path relative to the pre-generation post first.
If no image is found then the root source folder is taken as base.

Fixed get_online_url to use the caption folder (see issue #6).