Update transform.py

Added save_to_str method. useful for streaming the final image..
Update transform.py

2 good suggestions from @btel - docstring added and a better method name
Merge pull request #4 from willwade/master

add to_string method