Send correct report for indexed color
Convert channel and index parameters to integers
Set mode from command line script