added persistence calls to a few methods to fix image uploads