refactor code
delete redundant prototype img