Implement basic raytracing