core/formats: fix grayscale format returned by NAPixelFormaton::from_str()