module.exports = function(url, width, height, mode) { mode = !isNaN(mode) ? mode : 2; url = url || ''; url = url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode); if (url.indexOf('imageView2') > 0) { url += '/q/70'; } return url.replace('http:', ''); };