def METHOD_NAME( data ) :
    if data[0:3] != _PNG_HEADER :
        raise Exception( 'Invalid PNG image' )
    width  = (data[18] * 256) + (data[19])
    height = (data[22] * 256) + (data[23])
    return width, height