Cleaned up encoding type and rewind file object if PIL fails.
Merge branch 'master' of https://github.com/Clarifai/clarifai_py