changes path of image