replaced base with ray tracer code completely to get rid of anti aliasing bug.