im.tostring() -> im.tobytes() - fixed deprecation warning.

This a fix for issue #122.