added a process to convert BGR to RGB and fixed color export