Auto detect supported resolutions (fixes #66)

Only tested on Windows PC; not sure if it
will work on Android