Fix layout_size_opt and render_to_original_video_size option