moved jpeg header check method to public image utils class.
Merge pull request #405 from jawallace/merge_fix

moved jpeg header check method to public image utils class.