make pad size be dependent on resolution of input signal