Added pixel_ratio to output frame from encoder