fix image refresh