When the grain image is scaled down some of the very small grains are removed, but DAMASK needs the grain numbers to be in a range with no missing numbers. Some new features are needed to keep the grain number the same after removing the very small grains.