fixed implementation in #30

Absolutize path before using it as relative base
Merge pull request #31 from bezoerb/InlineImage-patch

fixed implementation in #30