lavf/img2: Move "loop" into common options.