Flipped texture in HeightMap


I’ve been using the HeightMap op and I realized the texture is flipped. I tried using a TransformGeometry op, an Extrude value of -1 and uploading a flipped texture but it still shows the wrong way. Is there other way to flip it?

I added

ctx.translate(0, canvas.height);
ctx.scale(1, -1);


ctx.drawImage(image, 0, 0);

and its working now: