Finished refract and propagate_ray methods