def get_image_url(status):
    """
    Get image url from tweet status

    Parameters
    ----------
    status: Tweet
        Tweet status that mentions img2palette
    
    Returns
    ------
    image_url: str
        Image url
    
    """
    if "media" not in status["entities"]:
        raise ValueError("No photo in status")
    if len(status["entities"]["media"]) == 0:
        raise ValueError("No photo in status")
    if status["entities"]["media"][0]["type"] != "photo":
        raise ValueError("No photo in status")
    return status["entities"]["media"][0]["media_url"]