fix image error problem