Refactor getImageForUrl() to use promises