def METHOD_NAME(key, value):
    """Returns a EmbeddedImage or None"""
    # http://www.hydrogenaud.io/forums/index.php?showtopic=40603
    cover_type = get_cover_type(key, value)
    if cover_type is None:
        return
    parts = value.value.split(b"\x00", 1)
    if len(parts) != 2:
        return
    f = get_temp_cover_file(parts[-1])
    if not f:
        return
    return EmbeddedImage(f, "image/", type_=cover_type)