basic functionality. Fixed bag with file dialog
Size restriction enabled
Some refactoring
Functionality without progressBar