convert pix to RGB and gray