update IP.h to include padImage, copyToBuffer