Fix to ensure that cached images are available before use - fixes issue #2663

This change ensures that all of the images have been accounted for before executing the resize logic.  Prior to this change, you could get in a situation where things would occur before all the images had been processed causing behaviors such as individual images showing only the initial src value.