MAINT: use Image.frombytes if available

fromstring is deprecated in python3 capable pillow
Merge pull request #2518 from juliantaylor/pil-frombytes

MAINT: use Image.frombytes if available