static bool isValid(int? value) => value == grayscale || value == rgb || value == indexed || value == grayscaleAlpha || value == rgba;