'Return an APIC frame populated with data from ``image``.'

def serialize(self, image):

    assert isinstance(image, Image)
    frame = mutagen.id3.Frames[self.key]()
    frame.data = image.data
    frame.mime = image.mime_type
    frame.desc = (image.desc or u'')
    try:
        frame.desc.encode('latin-1')
    except UnicodeEncodeError:
        frame.encoding = mutagen.id3.Encoding.UTF16
    else:
        frame.encoding = mutagen.id3.Encoding.LATIN1
    frame.type = image.type_index
    return frame
