cleaner approach to sending data to backend. Still trying to decide if I want to base64 or not