added support for GRAY8 data types