opencv: find corners and fix image