improve debugging dump jpeg for codec mode