tent)));
            });
        }

        function renderImage(image) {
            let pixels = []
            let pixelCounter = 0

            for (let j = 0; j < 512; j++) {
                for (let k = 0; k < 512; k++) {
                    pixels.push(image[pixelCounter])
                    pixels.push(image[pixelCounter+1])
                    pixels.push(image[pixelCounter+2])
                    pixels.push(255)
                    pixelCounter += 3
                }
            }

            c