adapt images paths