Count non-header data towards intra block bit count in MJPEG encoder