support for 16 bit images