update to auto replace img urls