append divs for each image, variable name refactor