Fix markdown img parsing