def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def _read_flow(self, file_name):
        return _read_16bits_png_with_flow_and_valid_mask(file_name)