Influence of thermal fluctuations on optical properties of liquid metacrystals