Initial rendering loop