increased efficiency of processing inserted nodes + fixed image container resizing bug