test_read_write_image now passes