Remove unnecessary codes from render.py