Added option to set resolution by hand (overlooked in the last commit)