Added functionality to query available video modes.