Wrote a `read_data_from_canvas` method