'Updates done by both v23 and v24 update'

def __update_common(self):

    if ('TCON' in self):
        self['TCON'].genres = self['TCON'].genres
    mimes = {'PNG': 'image/png', 'JPG': 'image/jpeg'}
    for pic in self.getall('APIC'):
        if (pic.mime in mimes):
            newpic = APIC(encoding=pic.encoding, mime=mimes[pic.mime], type=pic.type, desc=pic.desc, data=pic.data)
            self.add(newpic)
