fix bug where output resolution was being determined before it was read from the...