add simple scaling algorithm
cleanup messed border to adjust new scale
Merge pull request #2 from justmyfreak/master

implement scaling algorithm on gh-pages too