fix RGB order of framebuffer