The contribution of small grains to the opacity of protoplanetary atmospheres