various updates on storing images