Added image compression using SOM

Reimplemeneted some GUI methods.
Added progress bars for long algorithm operations and image generating.
Fixed some bugs with gui.