Fixes #6.  Padding won't shrink the image if it doesn't have to.