Split up render.py