remove old url after image has been inserted