fix image hiding bug