Add uploadImage method (to upload an image and its thumbnail to homeserver)