Update transform.py

Added save_to_str method. useful for streaming the final image..