modifications for load balancing and for sending base64 for image blobs