remove ../ from path of image