def fetchImage(code):
    """
    Returns file path to logo of league as string

    Parameters:
    -----------
    code : str
        The ID of the league for which fixtures are required

    Returns:
    --------
    str
        Contains file path if valid code is supplied, else 'None'
    """
    if code in ['PL', 'FL1', 'BL', 'SPA', 'SA']:
        return f"source/logos/{code}.jpg"
    else:
        return None