re-adding padding support

Think I’ve fixed the previous bugs, padding now works as an input
argument again.