base program for imageScanner