Update JPG dimension checking for Python3.
Merge pull request #47 from codecarson/st3

Update JPG dimension checking for Python3.