allow input img+ind instead of file names