fix to GUI for loading an image matrix