updating upsample2 and downsample2 to deal with single size arguments