correct padding if img doesn't exist