'Attempt to guess the thumbnail image format and set
L{self.thumbnail_type} accordingly.'

def fix_thumbnail_type(self):

    slice = self.thumbnail[0:16]
    self.thumbnail_type = self._detect_thumbnail_type(slice)
