add replace img script, not finished