added 3-channels support to morphology operations