Get rid of pixeltype in channels calculation