if you can go back a little you can use sensor.set_windowing(roi) at 128x128 or maybe a bigger square.
In this case you will set sensor.set_framesize(sensor.QVGA) at 320x240.
You can try a square at 240x240 in this case.
It works perfectly, thank you for your patience and for helping us. Have a nice day!