fixed array repopulation issue on resize events for image widths