tests: Convert lavf image tests to non-legacy test scripts