collecting and storing images