added read_tile method