Fixed incorrect color type conversion

Fixed incorrect color type conversion preventing command line color parameters from being parsed correctly to colors.