improved flexibility of cropVolume.m