function ImageService() {} ImageService.prototype.downloadImage = function(imageUrl) { var options = { 'method': 'GET' }; var response = UrlFetchApp.fetch(imageUrl, options); return response.getBlob(); }