auto get screen resolution, if none is given
Merge pull request #2 from joker234/resize-patch

auto get screen resolution, if none is given