Automation of PCB visual inspection system