async function () { try { var img = await loadImage('thesis_defense.png'); console.log('received image'); } catch (err) { console.log('caught in rejection handler'); console.log(err); } });