Use skip_put_bytes in MJPEG encoder instead of filling all bytes with 0