Use frombytes instead of fromstring on PIL images

(Since the latter is now deprecated)