private void SetPixel(Image image, int x, int y) { var ray = rayProvider.GetRay(x, y); image[y, x] = GetColor(ray); }