An advanced image generator using Raytracing and Pathtracing