modified edit to populate image list