Man who chained dog to clothesline in heat sentenced