Now tests for supported display modes and sizes

Fixes support for different sizes and modes. (Issue #10)