better use img_as_ubyte