Update readFrame function to return RGB matrix instead of GBR matrix.