pad function

Pad image with n pixels along specified axis