adding a debug to jpeg_utils.py