change image url and delete local image