I wrote a little fractal in OSL, which I have previously done in Java, and it is severely warped for some reason. Help?

```
shader Fractral(
float Hue = 0,
point pos = P,
output color Color = 0
)
{
int i;
float real = pos[0];
float imag = pos[1];
float x = real;
float y = imag;
for(i = 0; i < 20; i++) {
real = pow(real,2) - pow(imag, 2) + x;
imag = 2*imag*real + y;
if(sqrt(pow(real,2)+pow(imag,2))>2) break;
}
Color = color("hsv", Hue, 1, i/20.0);
}
```

Mandelbrot in OSL

Mandelbrot in Java