def markdownimage(img, width=1000):
    """Format the image embedding using the markdown notation.

    :param str img: Relative path to the image.
    :param int width: Width of the image.
    :return: Markdown string.
    """
    return '![image](' + img + '){:width="' + str(width) + '"}\n'