Updated the resolution to read from preview, or else capture
if resolution is not specified before running, it will choose the first one