Fix #111 external images in links were broken

This fixes the fix for internal relatively referenced images such that
it is really only applied to internal images and not external images.