- currently the gradient is padded with the median value - [ ] add zero-padding - [ ] add asymmetric padding as well