diff --git a/src/pe/raytracing/Raytracer.h b/src/pe/raytracing/Raytracer.h
index 377f37ad2c9d49fcf4678974d4bfeae03db5d9a9..f3ecb4983742d0b84c0240b04e1ad75bcd98b3ab 100644
--- a/src/pe/raytracing/Raytracer.h
+++ b/src/pe/raytracing/Raytracer.h
@@ -546,9 +546,6 @@ void Raytracer::generateImage(const size_t timestep, WcTimingTree* tt) {
    if (tt != NULL) tt->start("Raytracing");
    real_t inf = std::numeric_limits<real_t>::max();
    
-   std::vector<real_t> tBuffer(pixelsVertical_ * pixelsHorizontal_, inf);
-   std::vector<Color> imageBuffer(pixelsVertical_ * pixelsHorizontal_);
-
    std::vector<BodyIntersectionInfo> intersections;
    std::vector<BodyIntersectionInfo> intersectionsBuffer(pixelsVertical_ * pixelsHorizontal_); // contains for each pixel information about an intersection, if existent
 
@@ -619,7 +616,6 @@ void Raytracer::generateImage(const size_t timestep, WcTimingTree* tt) {
                isErrorneousPixel = false;
             }
             
-            imageBuffer[coordinateToArrayIndex(x, y)] = color;
             BodyIntersectionInfo intersectionInfo = {
                uint32_t(x),
                uint32_t(y),
@@ -633,8 +629,6 @@ void Raytracer::generateImage(const size_t timestep, WcTimingTree* tt) {
             intersectionsBuffer[coordinateToArrayIndex(x, y)] = intersectionInfo;
             intersections.push_back(intersectionInfo);
          }
-         
-         tBuffer[coordinateToArrayIndex(x, y)] = t_closest;
       }
    }
    if (tt != NULL) tt->stop("Intersection Testing");