Added optional PaddingType in pad methods