Moved BGR/RGB conversion into convert table to remove warning