import base64


def image_uri(filename):
    """Return the base64 encoding of an image with the given filename.
    """
    image_data = open(filename, "rb").read()
    return "data:image/jpg;base64," + base64.b64encode(image_data).decode()