Replaced mass of image loads with loop