An Accrington man whose frequent assaults on his dog were captured on a Ring Doorbell camera has been prosecuted.