fix image resolve bug