add an imagesReplaced callback function that gets called after Imager.js replaces images