Various bugfixes for markdown inline images.