updated raytracing.py