Receiving data from tank and sending data to client allows for images of arbitrary size to be sent