Added missing uploadImage method.