Added mode test to method extract digit to save vote count region to be saved to file