changed MkvsynthPixel to use unions instead of typecasting