Tried to fix GUI incompatibility on Linux.
Used supposedly platform independent Image class.
Doesn't work on my virtual machine. Will need to test on real machine.