@rwaldron 
Thank you for the feedback.
We can modify the changes which was given like above append: function,but in this case we are calling the onContentChanged() function everytime i.e., for each image which needs to be appended(resizing), as per comment#14 from julien to avoid calling the onContentChanged for everytime we have modified the code in this way.

Thanks!