import requests


def download_image(url):
    """Downloads an image, given an url

    The image is saved in the download.jpg file

    Args:
      url: source from where download the image
    """

    filename = "download.jpg"
    response = requests.get(url)

    file = open(filename, "wb")
    file.write(response.content)
    file.close()

    return filename