added demosaic function, the bmp seems fine