replace ImageManager.filenames with sourcefiles
replace new_filenames with new_sourcefiles