im.tostring() -> im.tobytes() - fixed deprecation warning.
Merge pull request #123 from boromil/master

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