add img path to the file