image reference refactored out of kramdown resolver and applied for both markdown rendering engine