* img_test is now tested for channel numbers instead of img
* fixed indentation to use spaces and trailing spaces