GUI 2d image is distorted

Data from a square detector should be shown as a square, not as an elongated rectangle.