In GUI, keep aspect ratio of detector image fixed

If GUI is resized, don't distort the detector image.

This will also solve the issue of distorted masks.

Possibly linked to #823 (closed), the question of bin vs physical units.

Edited by Joachim Wuttke