Pack of useful changes

Please, look through commits, I tried to do all actions step by step.
This pull request represents everything mentioned in my comment in issue https://github.com/claviska/SimpleImage/issues/16#issuecomment-20570539 and much more