adjust images dir using |filename|