I was looking through your preprocess code, and it looks like the RGB file that you save is actually BGR. Is it on purpose or is that a mistake?