'@param slice: The first 16 bytes of the thumbnail'

@classmethod
def _detect_thumbnail_type(cls, slice):

    ttype = 20
    if ('PNG' in slice):
        ttype = 18
    if ('BM' in slice):
        ttype = 19
    if ('JFIF' in slice):
        ttype = 17
    return ttype
