Fix decision on whether to use RGB24 or GBRP