Fix images path concat logic