adds debug logging to track down jpg->jp2 issue.
Merge pull request #39 from birkin/master

adds debug logging to track down jpg->jp2 issue.