Capturing PNG stream and sending to client with socket