Set output pixel format correctly