Accurate representations of general textures by a set of weighted grains