added pathForFile to images