Add an onImagesReplaced event

- event gets called after Imager.js replaces the src of images
- add test for onImagesReplaced callback
documentation for the onImagesReplaced callback