A father of three who committed €25,000 worth of social welfare fraud until he was caught using facial recognition software has been jailed for 18 months.