Delete old image and fix url to images