better handling of RAW8 formats