add tools,modified views.py, create.js and add image generate code.