handle a file list so jpgs can be moved to another directory