io.readinput: reads photo inputfiles