Padding input, so the dimensions do not have to be a power of 2 anymore