trying to wrap all images in a div, having issues with image order and incrementation after images are wrapped