Modified the path of img.