Adapt path to images