Tweak image size to account for padding.