core/test: flip output PGMYUV if needed