Thermal conductivity of porous media is considered. The model permits regular power-series expansion of the expression for thermal conductivity as a function of porosity. The coefficients of the expansion depend on two-site correlation function of local thermal conductivities, which can be calculated from the microscopy image of the structure. Thermal conductivities of some model two-dimensional structures as well as a real porous yttria-stabilized zirconia film are calculated and discussed.