implements imgAct for 1-3 color channels, and passed the test.