Fixed my bugs in the parenthesis, getting number of color channels, etc