Update JPG dimension checking for Python3.

I updated the JPG dimension checking for Python3.  I don't really know Python at all so check it out for yourself but this works for me in ST3!   Wicked plugin!