code refactor,add images