Make image loading to work on top of Promises/polyfill