Montreal man who violently beat his dog sentenced to prison time