fix image cache bug