Different screen sizes implementation

It is now able to detected the screen size. Second monitor support not
implemented yet.