def cell_start(position, cell_width, wall_width):
    """Compute <row, col> indices of top-left pixel of cell at given position"""
    row, col = position
    row_start = wall_width + row * (cell_width + wall_width)
    col_start = wall_width + col * (cell_width + wall_width)
    return (row_start, col_start)